freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)論文-基于android的飛機大戰(zhàn)游戲設(shè)計與實現(xiàn)(完整版)

2025-01-18 23:01上一頁面

下一頁面
  

【正文】 d smartphone developing fast . Android occupies a large share in the market . Android game application is successful, it make a person see that mobile games on the Android platform of the huge development space. Based on this,we using Eclipse and Android ADT as integrated development platform, to develop the Android game application. This application for Android plane war games include six operating interface, respectively as the start screen, the game interface and set interface, Win interface, Lose interface. Players can choose interface to play the game. As the mobile phone game background music is indispensable, the application play different background music in different interface, players can also set the size of the background music in setting interface. This application using the Android SurfaceView to draw game interface, game interface pleasing to the eye by people to play. I n order to give players a good game environment , the control module of game should be simple, easy to operate. Keywords : Android Programing。 隨著游戲關(guān)卡不斷提高,其難度也更大,刺激性也更強。 可行性分析 該系統(tǒng)采用 Eclipse 集成 Android ADT 為開發(fā)平臺進(jìn)行 APP 開 發(fā)。 洛陽師范學(xué)院 2020 屆本科生畢業(yè)設(shè)計 2 第 2 章 系統(tǒng)需求分析 用戶功能需求分析 由于本程序簡單易操作,交互性好,對用戶沒什么特別要求。各個 Activity 之間的切換要快速( PS:它們各自的背景音樂也要隨之切換,給用戶 以 順暢、自然的感覺)。 用戶的操作基本可以劃分為 “ 開始游戲 ” , “ 設(shè)置游戲 ” , “ 玩游戲 ” , “ 查看分?jǐn)?shù) ” , “ 退出游戲 ” 這五個用例。 用來存儲用戶基本信息的positor_table 的字段信息如圖 41 所示。使用了最簡單的單例,并未從線程安全的角度進(jìn)行進(jìn)一步的限制,原因在于考慮到 當(dāng)前應(yīng)用中只有 3 個 Activity 使用了 DAO,由圖 42 可知Activity 之間的切換類似于進(jìn)程對于 CPU 的占用一樣,當(dāng)前顯示在界面上的 Activity 是活動狀態(tài)而其他 Activity 則是掛起狀態(tài),因此不必?fù)?dān)心它們的線程同時去創(chuàng)建 DAO 對象以引起當(dāng)前系統(tǒng)中多個 DAO 對象的狀況。 helper = new SkyGameDataBaseHelper(context,1)。 (sql, null, values)。 if(() 0){ int count = 0。 } try { ()。 Android 作為目前主流的移動操作系統(tǒng),完全符合 SQLite 占用資源少的優(yōu)勢,故在Android 平臺上,集成了一個 嵌入式 關(guān)系型數(shù)據(jù)庫 — SQLite。// 設(shè)置當(dāng)前 activity 調(diào)用的layout //其他操作 } BroadcastReceiver 由于本應(yīng) 用是有多個 Activity 為了解決多個 Activity 在其中任意一個 Activity 結(jié)束時都會相應(yīng)一起退出系統(tǒng),因此針對每一個 Activity 設(shè)置一個 BroadcastReceiver 來接收廣播,一旦接收到廣播當(dāng)前 Activity 自動退出 。 MediaPlayer( 媒體播放器 ) 本應(yīng)用使用 Android 的 MediaPlayer 來演奏每一個頁面的背景音樂。 } catch (SecurityException e) { // TODO Autogenerated catch block ()。 monitor = new Monitor()。 if((eventX = START_X)amp。 } if(action == ){ startButton = (getResources(), )。 (eventY = OPTION_Y)amp。 } } else if((eventX = SCORE_X)amp。 } if(action == ){ scoreButton = (getResources(), )。 (eventY = EXIT_Y)amp。 (EXIT)。 sr = new SkyGameScreenRollView(this)。 ContextMenu 的方法如下: res/menu/** 的菜單 ( 當(dāng)前應(yīng)用使用的該方法 )。 } 在游戲界面的 SkyGameScreenRollActivity 的方法 onOptionsItemSelected(MenuItem item)中為每個菜單選項編寫響應(yīng)事件,具體使用方法如下所示: public boolean onOptionsItemSelected(MenuItem item) { // TODO Autogenerated method stub Intent intent = null。 break。 } 發(fā)送短信 在用戶贏得一關(guān)的時候會發(fā)送一條信息“通過第 N 關(guān)”,實現(xiàn)該功能的代碼如下: private SmsManager sms = null。 float x = ()。 y = ()+()){ if(action == ){ playerIsTouch = true。 (intent)。 飛機中彈序列如圖 412 所示: 圖 412 飛機中彈序列圖 血條 繪制玩家飛機血線和 Boss 血線的邏輯是相同的,在統(tǒng)計飛機中彈次數(shù)的情況下使用圖洛陽師范學(xué)院 2020 屆本科生畢業(yè)設(shè)計 26 413 中的各個小圖對血線進(jìn)行繪制。 ( blood, 0, viewHeight (), null)。 } } 設(shè)置界面 當(dāng)前界面使用的是普通的 layout,生成的設(shè)置界面如圖 415 所示: 圖 415 設(shè)置界面 洛陽師范學(xué)院 2020 屆本科生畢業(yè)設(shè)計 28 ?xml version= encoding=utf8? LinearLayout xmlns:android= android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical LinearLayout android:layout_width=match_parent android:layout_height=wrap_content TextView android:id=+id/tv_option_sound android:layout_width=0dp android:layout_height=wrap_content android:layout_weight=1 android:gravity=center android:text=string/tv_option_sound android:textSize=20dp / SeekBar android:id=+id/option_sound_seekBar android:layout_width=0dp android:layout_height=wrap_content android:layout_weight=4 / /LinearLayout RadioGroup android:id=+id/option_grade_radio_group android:layout_width=wrap_content android:layout_height=wrap_content RadioButton android:id=+id/option_grade_simple android:layout_width=wrap_content android:layout_height=wrap_content android:checked=true android:text=string/option_radioButton_simple / RadioButton android:id=+id/option_grade_middle android:layout_width=wrap_content android:layout_height=wrap_content android:text=string/option_radioButton_middle / RadioButton android:id=+id/option_grade_difficult android:layout_width=wrap_content android:layout_height=wrap_content android:text=string/option_radioButton_difficult / /RadioGroup 基于 Android 的飛機大戰(zhàn)游戲設(shè)計與開發(fā) 29 LinearLayout android:layout_width=match_parent android:layout_height=wrap_content Button android:id=+id/btn_make_sure android:layout_width=wrap_content android:layout_height=wrap_content android:text=string/btn_confirm / Button android:id=+id/btn_cancle android:layout_width=wrap_content android:layout_height=wrap_content android:text=string/btn_cancle / /LinearLayout /LinearLayout SeekBaramp。 (maxProgress)。 (rdGroupCheckedrdId, rdId)。 基于 Android 的飛機大戰(zhàn)游戲設(shè)計與開發(fā) 31 private Button btnCancle = null。 (rdGroupCheckedrdId, rdId)。 (rdId)。 initSeekBarProgress()。 ()。 } public boolean onOptionsItemSelec
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1