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

正文內(nèi)容

android貪吃蛇課程設(shè)計報告-資料下載頁

2025-01-17 11:16本頁面
  

【正文】 面、游戲結(jié)束界面的設(shè)計。界面的設(shè)計采用的是xml文檔形式,在xml文檔中規(guī)劃好界面布局布局后,分別在java文件中聲明。(1)游戲主界面,主界面采用線性布局設(shè)定,指定自定義的控件。:?xml version= encoding=utf8?LinearLayout xmlns:android= android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=000 android:id=@+id/snake android:layout_width=match_parent android:layout_height=match_parent//LinearLayout(2) 游戲結(jié)束界面,:?xml version= encoding=utf8?LinearLayout xmlns:android= android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:background=130c0e TextView android:id=@+id/fenshu android:layout_width=wrap_content android:layout_height=wrap_content android:background=009ad6 android:textColor=fffffb android:textSize=30px/ LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal Button android:id=@+id/jixu android:text=@string/jixu android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_marginTop=8px/ Button android:id=@+id/tuichu android:text=@string/tuichu android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_marginTop=8px/ /LinearLayout/LinearLayout(3) 界面設(shè)計完成,但還有最重要的一步。:?xml version= encoding=utf8?manifest xmlns:android= package= android:versionCode=1 android:versionName= usessdk android:minSdkVersion=8 android:targetSdkVersion=17 / application android:allowBackup=true android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity android:name= android:label=@string/app_name intentfilter action android:name= / category android:name= / /intentfilter /activity activity android:name=.NextActivity android:label=@string/other android:theme=@android:style//activity /application/manifest第五章 測試經(jīng)過在模擬器上的測試,本軟件能實現(xiàn)其功能,達到了小蛇在屏幕上的移動,小蛇吃食物,食物隨機出現(xiàn)的功能,當小蛇頭尾相撞或與墻相撞時,。(1) 游戲時(2)結(jié)束時通過對游戲軟件的功能測試,控制測試和界面測試。對游戲的開始新游戲、退出和統(tǒng)計分數(shù)功能進行測試,并測試程序的鍵盤點擊事件,結(jié)論是該游戲軟件能正確實現(xiàn)功能要求。要求輸出的效果與預(yù)期的輸出效果完全一致。第六章 結(jié)論這次Android課程設(shè)計讓我重新熟悉了Android工程的框架及設(shè)計的步驟,以及每個文件的作用,稍微掌握了一些View類的方法,同時也學(xué)到了更多的界面設(shè)計的方法,比如如何自定義視圖等。在學(xué)習(xí)、使用Java的過程中,進一步在總體上讓我對編程語言有了新的認識。在設(shè)計、調(diào)試、修改的過程當中,我對程序的設(shè)計與構(gòu)架在整體上有了進步。這次通過做Android課程設(shè)計,我完成了小游戲貪吃蛇的任務(wù)。在整個過程中遇到了一些問題,如蛇頭怎樣移動,蛇的尾巴怎樣跟著移動,還有在默認情況下怎樣讓蛇自行移動、時間處理的機制和界面的設(shè)計問題,但最終部分被解決了,還有一些自己想到的功能,已經(jīng)去做了但還是出現(xiàn)問題,還沒能做出來,如暫停游戲、完成游戲獲得分數(shù)、存檔、游戲排名、蛇無效方向處理和加快蛇移動速度等,后面有時間的話,在繼續(xù)深入把沒有完成的功能做出來。在這一次的課設(shè)過程中,我查閱了相關(guān)的資料,對Android有了進一步的認識,希望以后可以用Android做出一款大型軟件,而不只是小游戲。Android讓我比較頭疼的是有些只是知道代碼的作用,卻不是很清楚硬件的工作原理,還有遇到一些問題就想放棄了,這是我今后要克服的。通過這次編程,還讓我認識到了自己的不足,在編程方面,我發(fā)現(xiàn)自己是剛剛?cè)腴T,對代碼還不是很熟悉,需要我不斷的充實自己,這樣才能在程設(shè)計方面有所收獲。參考文獻 [1] ,2013
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1