【正文】
t remember his appearance. Baumgartner the disappointing news: Mission aborted. r plays an important role in this mission. Starting at the ground, conditions have to be very calm winds less than 2 mph, with no precipitation or humidity and limited cloud cover. The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our daytoday weather lives. It will climb higher than the tip of Mount Everest ( miles/ kilometers), drifting even higher than the cruising altitude of mercial airliners ( miles/ kilometers) and into the stratosphere. As he crosses the boundary layer (called the tropopause),e can expect a lot of turbulence. We often close ourselves off when traumatic events happen in our lives。或許是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個不同的日子過成了同一天的樣子;或許是追溯過去,對自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海中不斷糾纏。s 150th anniversary celebrations and will attend City39。無論在理論上還是在實踐 中,都給予我無私的幫助和悉心的教導,使我的畢業(yè)設計得以順利地按時完成。 tmp_map[tmp_point[i].y][tmp_point[i].x] == 1 ) { findWay(tmp_point[i],target)。 i++) { if(tmp_point[i].x = 0 amp。 ()。 == ) { left_life 。 else ret = (*ways[index])[0]。 int index = 0。 } break。amp。 ret = true。 } } int Manager::getLevel() { return m_level。 } Manager* Manager::shareManager() { if(instance == NULL) { instance = new Manager()。 在此次逃生游戲的開發(fā)與設計中,首先我學會并熟悉掌握了搭建 Eclipse 和 Android開發(fā)環(huán)境的步驟,然后逐漸的在編寫程序,修改程序中的錯誤,現(xiàn)在雖然基本已經(jīng)完 成所有功能,但肯定還有很多不足,而且我也發(fā)現(xiàn)自己數(shù)據(jù)庫方面的知識很欠缺,需要不斷的加強。 如圖 所示: 圖 關(guān)卡選擇功能測試 游戲測試 當進入游戲界面,怪物會隨著角色的移動而選擇路徑 ,追蹤算法功能運行正常。 注冊功能測試 當輸入 UserName 為 CHEN, PassWord 為 123456 時,點 Register 注冊成功。在當 中北大學 2021 屆畢業(yè)設計說明書 第 27 頁 共 42 頁 前的擴展結(jié)點處 ,搜索向縱深方向移至一個新結(jié)點。如果用戶名存在,并且密碼正確,則用戶登錄成功,此時則返回 true,否則,返回 false。xiaoming39。 ( 2) 客戶端 當用戶在游戲的用戶注冊頁面,點擊 “Register”按鈕后,程序?qū)⒄{(diào)用 void regPressed(CCObject*,CCControlEvent)函數(shù),函數(shù)代碼如圖 所示。 ( 1) 游戲角色不能觸碰到怪物,觸碰到怪物即為失敗。 1 為地圖上能走的通道, 0 為墻。 數(shù)據(jù)庫設計 ER 圖提供了表示實體型、屬性和聯(lián)系的方法: 實體型:用矩形表示,矩形內(nèi)寫明實體名。 經(jīng)濟可行性 一個項目的開發(fā)成本、運行費用和收益這些經(jīng)濟因素決定了該系統(tǒng)是否值得的做,只有投資預計能帶來利潤的系統(tǒng)才值得進一步去考慮。 可行性分析 技術(shù)可行性 Android 系統(tǒng)平臺是一個基于 Linux開源的手機操作系統(tǒng)。 然后打開 window,點擊 AVD Manager,進入一個界面,如圖 所示: 圖 AVD Manager 中北大學 2021 屆畢業(yè)設計說明書 第 10 頁 共 42 頁 點擊 new,可以新建一個 AVD,如圖 所示: 圖 NEW AVD 中北大學 2021 屆畢業(yè)設計說明書 第 11 頁 共 42 頁 選中一個 AVD,點擊 start,再點擊 Lunch,會進入安卓虛擬模擬器界面。 裝好之后,配置環(huán)境變量: 打開環(huán)境變量窗口方法:右鍵【我的電腦】 單擊【屬性】 單擊【高級】 單擊【環(huán)境變量】。 ( 3) 豐富的硬件。在優(yōu)勢方面, Android 平臺首先就是其開發(fā)性,開發(fā)的平臺允許任何移動終端廠商加入到 Android 聯(lián)盟中來。 在 Android 平臺中 dalvik vm 的執(zhí)行文件被打包為 apk 格式,最終運行時加載器會解壓然后獲取編譯后 文件中的 permission 分支相關(guān)的安全訪問,但仍然存在很多安全限制,如果你將 apk文件傳到 /system/app 文件夾下會發(fā)現(xiàn)執(zhí)行是不受限制的。 Android 逐漸擴展到平板電腦及其他領域上,如電視、數(shù)碼相機、游戲機等。 中北大學 2021 屆畢業(yè)設計說明書 第 4 頁 共 42 頁 2 開發(fā)環(huán)境及相關(guān)技術(shù)的介紹 Android 簡介 Android 一詞的本義指“機器人”,同時也是 Google 于 2021 年 11 月 5 日宣布的基于 Linux平臺的開源手機操作系統(tǒng)的名稱,該平臺由操作系統(tǒng)、中間件、用戶界面和應用軟件組成。主要功能為邏輯實現(xiàn)玩家通過觸摸手機屏幕控制英雄的移動,包括移動方向的改變以及移動速度等,怪物按照特定的尋徑算法追蹤英雄。暫停選項能使游戲界面活動停止,恢復選項則使游戲繼續(xù),返回選項可以使界面回到登錄界面。尤其是中小企業(yè)開發(fā)團隊低成本以及源代碼的分享可以為企業(yè)節(jié)省大量資金,這對于中小企業(yè)來說無疑是最 大的誘惑。所以,開發(fā)出大家都比較喜歡的,高品質(zhì)的休閑互動游戲,將會受到人們的普遍歡迎。隨著技術(shù)對游戲經(jīng)驗的促進,游戲市場持續(xù)增長。 關(guān)鍵詞 :Android,逃生游戲, Java The design and development of Android based on escape game Abstract Along with the Google Android operating system prevailed, domestic and foreign development team also gradually grew up, the system development of Android based on SDK, Android application development has gradually attracted attention, and the mobile phone game development is always moving part of the development of the heaviest weight, so unpopular with the Android market is not resigned to playing second fiddle due to the application layer, Android development based on Java development, so must have its can be quickly ported J2ME development of the game and the advantages of [11], but the Transplant Games must cannot play the unique characteristics of the Android operating system, so the current based on Android game development market is still not mature, in the face of this situation, in the understanding of Android SDK on the basis, I intend to develop a suitable Android operating system escape game. This game in Android platform is developed and designed, tested, basic function of game is realized, the system has good visual effect, and the operation is simple and convenient. Keywords: Android, Escape games, Java 中北大學 2021 屆畢業(yè)設計說明書 第 Ⅰ 頁 共 Ⅱ 頁目 錄 1 引言 …………………………………………………………………………… 1 課題 研究背景 ………… … ……………………………………………………… 1 國內(nèi)外研究現(xiàn)狀及分析 ………………………………………………………… 1 論文主要內(nèi)容 ……………………………………………………………………… 2 2 開發(fā)環(huán)境介紹 …………………………………………………………… 4 Android 簡介 ……………………………………………………………………… 4 Android 開發(fā)環(huán)境介紹 …………………………………………………………… 5 Android 開發(fā)平臺搭建步驟 ……………………………………………………… 6 3 系統(tǒng) 分析 …………………………………………………………………………… 12 系統(tǒng)需求分析 ………………………………………………………………… 12 .1 功能性需求分 析 …………………………………………………………… 12 .2 安全性需求分析 …………………………………………………………… 12 可行性分析 …………………………………………………………………… 12 技術(shù)可行性 …………………………………………………………………… 12 經(jīng)濟可行性 …………………………………………………………………… 13 操作可行性 …………………………………………………………………… 13 4 系統(tǒng)設計 ……………… ………………………………………… ……… ………… 14 4 . 1 系統(tǒng)結(jié)構(gòu)設計 ………… …… …………………………………………… 14 數(shù)據(jù)庫設計 ……… …………………………………………………… …… 14 4 . 3 地圖設計 …… …………………………………………………… …… 15 4 . 4 游戲界面 …… …………………………………………………… …… 16 游戲界面結(jié)構(gòu)設計 …… …………………………………………………… …… 16 注冊界面 …………… …………………………………………………… …… 16 登錄界面 …………… ………………… ………………………………… …… 18 用戶選擇界面 … ………………………………………………………… …… 18 關(guān)卡選擇界面 …… ……………………………………………………… …… 19 中北大學 2021 屆畢業(yè)設計說明書 第 Ⅱ