- 相關(guān)推薦
基于J2ME的手機游戲設計與實(shí)現
畢業(yè)論文
目 錄
1 緒論 1
1.1手機軟件現狀 1
1.2 游戲業(yè)務(wù)及J2ME概況 1
2 開(kāi)發(fā)環(huán)境及相關(guān)技術(shù)的介紹 5
2.1 開(kāi)發(fā)環(huán)境 5
2.2 JAVA語(yǔ)言的特點(diǎn) 5
2.3 關(guān)于JBUILDER9 5
2.4 關(guān)于WIRELESS TOOL KIT 5
2.5 JAVA APPICATION MANAGER 6
3 系統設計思想與技術(shù) 7
3.1 本程序需解決的有關(guān)技術(shù)問(wèn)題 7
3.2 程序流程 7
3.3 游戲API概述 8
3.3.1 游戲API類(lèi)庫概述 8
3.3.2 提供低級繪制的Canvas類(lèi) 9
3.3.3 Graphics類(lèi) 10
3.3.4 Game包中的新功能 10
3.3.5 有關(guān)繪圖的1些技術(shù) 10
3.4 棋子的控制和敵方(手機)的智能運行 11
3.5 RMS數據庫系統 11
3.6 內存使用的最佳化 12
3.7 混淆器(OBFUSCATOR)的使用 13
3.8 模擬器的相關(guān)調試 13
4 系統設計與編碼實(shí)現 14
4.1 游戲進(jìn)入前的選擇 14
4.2 主游戲邏輯及其涉及到的若干類(lèi) 14
4.3 游戲的總體流程實(shí)現 16
4.3.1 游戲的實(shí)現流程 16
4.3.2 棋子共同屬性 18
4.3.3 電腦棋子的功能屬性 18
4.3.4 記錄控制 19
4.4 游戲各個(gè)功能模塊的實(shí)現 19
4.4.1 登陸模塊的實(shí)現 19
4.4.2 棋子操作控制的實(shí)現 22
4.4.3 游戲結束控制的實(shí)現 24
4.5 游戲代碼的優(yōu)化問(wèn)題 26
4.6 錯誤分析 26
4.7 錯誤總結 26
4.8 基于游戲模擬器的測試 27
5 總結 28
5.1 本程序的總結和展望 28
5.2 經(jīng)驗和感想 28
參考文獻 30
致 謝 31
源 代 碼 32
基于J2ME的手機游戲設計與實(shí)現
摘要:J2ME(Java 2 Micro Edition) 是近年來(lái)隨著(zhù)各種不同設備,尤其是移動(dòng)通信設備的飛速發(fā)展而誕生的1項新的開(kāi)發(fā)技術(shù)。它定位在消費性電子產(chǎn)品的應用上。本文研究了基于J2ME技術(shù)的各種應用,學(xué)習了用J2ME開(kāi)發(fā)游戲的1般方法,然后設計與實(shí)現了1款基于手機的小游戲。游戲主要完成了游戲的3個(gè)基本的功能模塊,實(shí)現玩家與手機對戰的基本操作,首先是登陸界面的繪制,同時(shí)創(chuàng )建1個(gè)隱含列表,在登陸時(shí)候供玩家選擇;其次是在游戲中對棋子的具體操作,包括對棋子移動(dòng)位置的選擇控制,棋子的繪制和界面的更新,下棋方的選擇控制,重點(diǎn)實(shí)現了棋子出界和重疊問(wèn)題的算法控制以及對戰手機下子的智能控制問(wèn)題;最后1個(gè)功能模塊是對游戲結束的控制,通過(guò)對游戲條件的檢查判斷游戲是否已經(jīng)結束,當游戲結束時(shí)對游戲的結果進(jìn)行分析得出游戲的最終勝利方。
關(guān)鍵字:J2ME,手機游戲, Java,5子棋
Design and Implementation of Cell-phone
Game Based on J2ME
Abstract:J2ME (Java 2 Micro Edition) is a newly-developed technology that derives from the development of various equipments, especially mobile telecommunication equipments. It aims at the application of electronics consumables. This thesis makes research of all kinds of application based on J2ME technology, and designs a new mobile-phone-based game through basic ways that use J2ME to develop games. The game has three basic function modules to realize the fundamental operation of combat between players and mobile phones. The first module is the design of login interface, including an invisible list for the choice of players. The second one is the detailed operation of chessman during the game, including the choice of place for the next moving, design of chessman and renewal of interface, and the choice of players. This part enables the calculation control of chessman outside the interface and the overlap problems, and enables the intelligent control of combating mobile phones. The third one is the control of game exit. It checks the game condition and judges whether it is finished, and then analyzes to get the result who is the winner.
Keywords: J2ME, mobile game, Java, Five son chesses
【基于J2ME的手機游戲設計與實(shí)現】相關(guān)文章:
基于PCI總線(xiàn)的CAN卡的設計與實(shí)現03-18
基于A(yíng)SP的網(wǎng)絡(luò )考試系統的設計與實(shí)現03-07
基于FPGA的TS over lP的設計與實(shí)現03-21