【正文】
關(guān)性。但是傳統(tǒng)手機(jī)存在以下弊端: 1. 傳統(tǒng)手機(jī)出廠時均由硬件廠商固化程序,程序不能增加、刪除,有了錯誤也不能更新、修改,若要增加新功能必須另換一部手機(jī)。作為 Java2 平臺的一部分, J2ME 與 J2SE、 J2EE 一起,為無線應(yīng)用的客戶端和服務(wù)器端建立了完整的開發(fā)、部署環(huán)境。短短幾年內(nèi),手機(jī)已經(jīng)升級了幾代產(chǎn)品,普及率逐年攀升,生產(chǎn)效率不斷上升,產(chǎn)品價格比個人電腦的摩爾定律有更驚人的下調(diào),以至手機(jī)是大多是城市居民不可缺少的一件隨身設(shè)備。 聲 明 ............................................................................................. 錯誤 !未定義書簽。另外, 游戲中 還 包括了 排行榜,聲音設(shè)置,幫助等各種 附加 功能。手機(jī)游戲(堡壘)的設(shè)計與開發(fā) 摘要 隨著手機(jī)業(yè)務(wù)的迅速發(fā)展,手機(jī)游戲逐漸成為移動增值服務(wù)的興奮點。 游戲的主流程是 玩家 利用 手機(jī) 鍵盤 操作主角 在堡壘中拾取道具破解迷宮 ,并且隨著關(guān)數(shù)的增加,游戲的難度也逐漸增加。 關(guān)鍵詞: J2ME; 手機(jī)游戲 ; 堡壘 The Design and Development of a Handset Game (Castle) Abstract With the rapid development of cell phone business, cell phone games have gradually bee the hotspot of mobile valueadded services. This graduate design which focuses on J2ME technology designs and develops a handset adventure game (castle). This castle game is a handset RPG game based on J2ME which mainly examines the demon’s collision to touch off the event. It uses technology to achieve the menu, the map, the hero moves, monster AI etc. The game has included the order list, the sound establishment, helps of function etc. Player operates the lead through the handset to collect the stage prop in the castle to break through the labyrinth. The difficulty of the game will gradually increase along with the increase of stage. Otherwise, this intelligence and risk game is filled with enjoyment and the irritating quality witch suits many ages. This paper introduces related technology of the J2ME and the structure analysis and the concrete function realization of this castle game procedure. Key words: J2ME; handset game; castle 目 錄 論文總頁數(shù): 23 頁 1引 言 .......................................................................................................................... 3 2 手機(jī)游戲的現(xiàn)狀和 J2ME 的概況 .................................................................................... 3 ................................................................................................................ 3 J2ME 概況 ............................................................................................................. 4 J2ME 的由來 .................................................................................................. 4 J2ME 的 3層體系結(jié)構(gòu)及 MIDP簡介 ................................................................. 4 Configuration 和 Profiles .................................................................................. 5 J2ME現(xiàn)狀和前景 .................................................................................................... 6 手機(jī)游戲業(yè)務(wù) ........................................................................................................ 7 3 開發(fā)環(huán)境介紹 ............................................................................................................... 7 ................................................................................................................ 7 關(guān)于 SONYERICSSON WIRELESS TOOL KIT .............................................................. 7 4手機(jī)游戲(堡壘)的開發(fā) .............................................................................................. 7 游戲的的思路、構(gòu)想 .............................................................................................. 7 游戲想法的產(chǎn)生 .............................................................................................. 7 對游戲設(shè)計的初步認(rèn)識 ................................................................................... 8 模塊成型階段 ................................................................................................. 8 程序的類結(jié)構(gòu) ........................................................................................................ 9 游戲的流程圖 ........................................................................................................ 9 游戲的實現(xiàn) .......................................................................................................... 10 主類 GameMIDlet 的實現(xiàn) .............................................................................. 10 游戲畫布 MyGame 類的實現(xiàn) ......................................................................... 15 玩家精靈 GamePlayer 類的實現(xiàn) ..................................................................... 19 SoundEffects 類的實現(xiàn) .................................................................................. 21 5 程序設(shè)計過程中遇到的一些重要問題 .....................................................................