【正文】
.............................. 11 游戲主界面設(shè)計 ............................................................................................ 11 實體類設(shè)計 .................................................................................................... 12 核心技術(shù)運用 ........................................................................................................... 13 封裝 ................................................................................................................ 13 繼承 ................................................................................................................ 14 多態(tài) ................................................................................................................ 14 雙緩沖技術(shù) .................................................................................................... 15 鎖機制 ............................................................................................................ 16 Java Applet ..................................................................................................... 17 事件處理技術(shù) ................................................................................................ 17 線程 ................................................................................................................ 18 類加載機制 .................................................................................................... 19 流程設(shè)計 ................................................................................................................... 19 游戲整體流程 ................................................................................................ 20 物品獲得流程 ................................................................................................ 20 詳細設(shè)計 ................................................................................................................... 21 勇士移動 ........................................................................................................ 21 門打開效果 .................................................................................................... 21 商店功能 ........................................................................................................ 22 戰(zhàn)斗場景 ........................................................................................................ 24 音樂播放功能 ................................................................................................ 27 怪物手冊 ........................................................................................................ 28 樓層跳轉(zhuǎn) ........................................................................................................ 32 游戲進度的保存與讀取 ................................................................................ 35 6 測試 ..................................................................................................................................... 38 測試計劃 ................................................................................................................... 38 單元測試 ................................................................................................................... 38 對話測試 ........................................................................................................ 38 商店測試 ........................................................................................................ 39 怪物手冊功能測試 ........................................................................................ 40 風(fēng)之羅盤功能測試 ........................................................................................ 41 集成測試 ................................................................................................................... 42 測試總結(jié) ................................................................................................................... 42 結(jié)束語 ..................................................................................................................................... 43 參考文獻 ................................................................................................................................. 44 致謝 ......................................................................................................................................... 45 外文資料 ................................................................................................................................. 46 外文翻譯 ................................................................................................................................. 52 1 1 緒論 背景 及現(xiàn)狀 二十一世紀(jì) ,我們的 人類 社會進入了一個全新的時代 ——信息時代 。 Game。 關(guān)鍵詞 : Java; Java Swing; 游戲;魔塔;面向?qū)ο? Design and realization of the Magic Tower Game Based on Java Abstract The rapid development of puter technology, greatly affecting our daily lives. We use the puter to play the game more and more mon. Considering the Java is simple, secure, robust and other characteristics, as well as Write Once, run anywhere features. This time, the graduation project use the Java language to develop a puzzle RPG (roleplaying) games Magic Tower. The game is simple to operate, but the game tests players’ intelligence and strategy. Game Design features include: Monster Manual, Jump floor, background music, game schedule load / store and so on. Featurerich does not mean plicated operations, during the game, the player simply to operate the mouse and keyboard. The game has a variety of scenarios dialogue, bined with background music, allowing the player to have a feeling of being there. Meanwhile, the game has achieved the goal that players will not have to restart every time. The Graduation Project is mainly used in the design process to Java Swing, threads, event processing technology, interspersed with double buffering technology and Java Applet technology. The same t