【正文】
19 方為玩家控制的飛機(jī),直接觸屏操作即可操控飛機(jī)擊毀敵機(jī);屏幕左下角為飛 機(jī)自帶炸彈,點(diǎn)擊可發(fā)射,全屏的敵機(jī)全部摧毀。 圖 9:游戲結(jié)束界面 畢業(yè)論文:正文 20 游戲內(nèi)各種功能的實(shí)現(xiàn) 本節(jié)概述了幾個(gè)主要游戲功能的實(shí)現(xiàn)方法。并附帶了具體 java 代碼和注釋,方便講解和闡述。例如由初試界面跳轉(zhuǎn)到主界面: Public void onClick(view view ){ //TODO Autogenerated method stub if(view==btnStart){ //點(diǎn)擊“開始游戲”,跳轉(zhuǎn)界面 Intent intent= new intent(this,) 把創(chuàng)建的 intent 作為參數(shù)傳送到 startactivity()中。并把他們嵌套在 application 里。 背景音樂的播放功能 本游戲中的背景音樂沒有任何界面可以用戶交互,只在后臺(tái)運(yùn)行,所以需要用 service 來控制。如下代碼即為判斷小型飛機(jī)和玩家操控飛機(jī)碰撞的核心代碼。 Attack2 = false。amp。amp。amp。amp。是一種用來鑒定軟件正確性,完整性,安全性和質(zhì)量的過程。 軟件測(cè)試和軟件的開發(fā)過程在大部分情況下是平行或者說同時(shí)進(jìn)行的,測(cè)試計(jì)劃在需求分析階段就已經(jīng)開始著手制定了,測(cè)試包括尋找缺陷,跟著漏洞和修復(fù)漏洞。 測(cè)試種類 軟件測(cè)試的種類繁多,若要分類,可以從很多個(gè)角度來分。其他還有很多分類方式,由于與本課題關(guān)系不大,故不再贅述。由于與本課題所開發(fā)為簡(jiǎn)單的游戲軟件,所以無需做這么多測(cè)試。黑盒測(cè)試也叫功能測(cè)試,簡(jiǎn)而言之,就是測(cè)試軟件在硬件上的功能能 否實(shí)現(xiàn)。 白盒測(cè)試又稱為結(jié)構(gòu)測(cè)試,與黑盒測(cè)試不同,這種測(cè)試方法注重程序內(nèi)部。要通過白盒測(cè)試,程序中的各項(xiàng)功能,各個(gè)通路都要正常工作。 畢業(yè)論文:正文 24 第一步:?jiǎn)卧獪y(cè)試 單元測(cè)試對(duì)游戲源代碼中每一個(gè)程序單元都進(jìn)行測(cè)試,檢測(cè)其是否能 按照規(guī)定實(shí)現(xiàn)需要實(shí)現(xiàn)的功能。 第三步:確認(rèn)測(cè)試 檢驗(yàn)上一步中拼裝好的軟件是否全部滿足需求分析里的各種需求,以及軟件的配置是否完善。進(jìn)行運(yùn)行測(cè)試。 游戲運(yùn)行系統(tǒng)測(cè)試 測(cè)試環(huán)境 Android 移動(dòng)設(shè)備( Android 版本大于 ) 64 位 myeclipse(附帶虛擬機(jī)) 對(duì)各個(gè)模塊的測(cè)試 ( 1)游戲啟動(dòng)模塊 在 myeclipse中插入新的項(xiàng)目 — Android Beatplane。 手機(jī)中出現(xiàn)游戲 Beatplane 圖標(biāo)。 測(cè)試結(jié)果:實(shí)現(xiàn)了初始化游戲,暫停和退出游戲等功能。 測(cè)試結(jié)果:游戲運(yùn)行過程流暢,每到規(guī)定的分?jǐn)?shù)關(guān)卡都會(huì)有新的飛機(jī)和道具出現(xiàn),背景音樂也可 以正常播放。 測(cè)試結(jié)果:實(shí)現(xiàn)了游戲退出功能;實(shí)現(xiàn)了重新挑戰(zhàn)游戲功能和退出功能。并打開游戲進(jìn)行測(cè)試。 游戲性能總結(jié) 在對(duì)本軟件的測(cè)試和運(yùn)行過程中,我對(duì)本游戲有以下幾點(diǎn)看法和總結(jié)。 (2 )通用人群廣;本游戲適用于各階段使用 Android 手機(jī)的人群,且讓能青年人找到同年 pc 端玩雷電的感覺。有待滯后的進(jìn)一步解決和完善。總體上,這款 Beatplane 的開發(fā)達(dá)到了初期策劃和需求分析上的要求。當(dāng)然,缺陷依然存 在,有待進(jìn)一步完善,依然有進(jìn)步空間。 畢業(yè)論文:正文 26 第 6章 對(duì)于此次軟件開發(fā)的總結(jié) 經(jīng)過了數(shù)個(gè)月的努力,終于完成了自己的畢業(yè)設(shè)計(jì)選題 — 基于 Android系統(tǒng)的 Beatplane 游戲的開發(fā)工作。 在選題初期,只學(xué)過一點(diǎn) java 語言的我,對(duì) Android 的知識(shí)可謂知之甚少?;ㄙM(fèi)了 很多時(shí)間和精力,總算是從門外漢變成了一個(gè)入門者。設(shè)計(jì)了整個(gè)的游戲框架,并分成幾個(gè)模塊挨個(gè)完成。將我一團(tuán)亂麻的編程工作整理的井井有條。并且調(diào)整了一下游戲數(shù)據(jù),是游戲更加平衡,不至于太難上手。所以我在編寫過程中,一直讓熟悉的好友試玩我寫得游戲,給我建議,幫助我完善和進(jìn)步。 通過本次畢業(yè)設(shè)計(jì)的工作,我從一個(gè) java 菜鳥進(jìn)步成了一個(gè)湊合的程序員。如今, Android手機(jī)在市面上炙手可熱,通 過本次工作獲得的知識(shí),為我以后從事此方面工作積累了經(jīng)驗(yàn),奠定了專業(yè)基礎(chǔ)。s annual National Day for Eye Care, the China Youth Development ServiceCenter and Zhejiang Medicine, a leading listed Chinese pharmaceutical pany, jointlyannounced the kickoff of the about one month, a questionnaire piled by top eye care medical experts in China willbe distributed through multiple online partners, including m, as well asthrough offline survey events held in universities, middle schools and primary schools acrossthe report will be released based on the survey statistics and analysis, and most importantly,guidelines for parents and youth on how to care for the eyes and prevent myopia — agrowing problem in China39。s behaviors to care for eyes, basedon the timely and factual statistics the survey series of followup events will also be held in six cities, including Jinan in Shandongprovince, and Changsha in Hunan province, to educate people on how to care for eyes afterthe survey started. More and more Chinese are jogging to get and stay fit. Most joggers will run alone, but some will jog with friends or even coaches. The Beijing Olympic Forest Park is one of the most popular spots. It is packed with runners in the afternoon, usually after work, and at weekends. Jogging after a whole day39。s smoggy days. If the smog is severe, I39。ll wear a mask, or just ignore the smog and go on jogging, she said. For those who are not so athletic, jogging also has its attractions. Wu Houbin started roughly two years ago, when he was severely obese. Within two months, his weight dropped from 82 kilograms to 64 kilograms. The success helped him recover health, and he has made friends. Jogging does not require speed, but stamina. If you want to stick to the game, you need to take it as a mission, a habit, and then eventually a hobby, Wu said. But persevering with jogging is not always easy. Jogging is beneficial for heartlung function, and the skeletal system, but doctors say improper technique damages the joints, especially the knees and ankles. Excessive jogging wears down the body, and harms one39。s Pink Revolution, an annual campaign that seeks to raise awareness and funds for breast cancer research, the hotel recently announced. A major sponsor of the campaign for three years in a row, Conrad Macao has pledged to donate a portion of its proceeds to the fund, includ ing those collected from selling its popular bear and rubber duck merchandise, in limited pink editions. Pink is the theme for floral arrangements and decorations in the hotel in October. In addition, on Fridays that month, members of the management and staff will add something pink to their uniforms, regular s and handwritten guest cards. Breast cancer is the most prevalent type of cancer among women in Hong Kong and is also of significant concern in Macao and around the world, regardless of age, general manager Bede Barry said in a statement. The hotel has enlisted the support of a number of international and local celebrities to help drive the cause, including South Korean actor Jung Suk Won. This year, a lucky guest who stays at the hotel during the campaign and also donates money for the cause will win a necklace specially designed by Arte Madrid, a Spanish jewelry brand. Women should strive to balance quality of work and life, and have children at a young age. As a doctor I see much suffering because of this i mbalance. Xiao Ying, 36, works for a large law firm. Her job means lots of travel, a heavy caseload and a large number of meetings, so her schedule is hectic. She has been pregnant twice, but had abortions on both occasions because she felt her busy, highpressure career wasn39。s ovarian function has declined and a bi