1 / 14

打磚塊遊戲

打磚塊遊戲. 97156102 葉禹成 95156157 張哲維. 遊戲說明. 利用板子反彈球 , 讓球撞擊磚塊 , 把磚塊打光或是漏接球 3 次則遊戲結束重新開始 遊戲按鍵:左右方向鍵(控制板子移動) 空白鍵(播放 / 暫停 背景音樂). 檔案結構. 主要有新增圖片和音樂檔. 碰撞&反彈. 遊戲選單. 使用鍵盤滑鼠進入. 遊戲選單 2.

lev-perry
Download Presentation

打磚塊遊戲

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 打磚塊遊戲 97156102 葉禹成 95156157 張哲維

  2. 遊戲說明 • 利用板子反彈球,讓球撞擊磚塊,把磚塊打光或是漏接球3次則遊戲結束重新開始 • 遊戲按鍵:左右方向鍵(控制板子移動) 空白鍵(播放/暫停 背景音樂)

  3. 檔案結構 • 主要有新增圖片和音樂檔

  4. 碰撞&反彈

  5. 遊戲選單 • 使用鍵盤滑鼠進入

  6. 遊戲選單2 • 可使用鍵盤跟滑鼠,在Game1修改及呼叫GameComponen_Menu_Mouse中Update使用ButtonState.Pressed及newState.IsKeyDown(Keys.Enter) || newState.IsKeyDown(Keys.Space) • 發生例外錯誤Game1中LoadContent() //game = new GamePlay(this); //Components.Add(game);

  7. 若是按照以下執行,會發生狀況

  8. 遊戲選單3 • 進入其他畫面

  9. 選單檔案結構 • 使用新的選單檔案增加更多

  10. 新增音效、無接縫圖 • 在Content中加入MyAudio.xap及BGM.mav Game1中加入audio = new MyAudio(); audio.PlayBgm(); 播放背景音樂,並在UnloadContent()控制播放 • 背景圖直接在LoadContent()中使用 BG_Texture = Content.Load<Texture2D>("1-25");

  11. 磚塊顏色

  12. 碰撞消失

  13. 自學 • 讓磚塊出現紅色並且需要碰撞2次 • 複習無接縫貼圖 • 複習音效插入 • 新增選單選項

  14. 資料來源 • http://www.dotblogs.com.tw/help/archive/2009/01/07/6679.aspx • 課本範例第7章、第14章

More Related