【正文】
s most popular wor k, _The O ld Man and the Sea_, was awarded the Pulitzer Prize in 1953, and in 1954 Hemingway won the Nobel Prize in Literature for his powerful, styleforming mastery of the art of narration. One of the most important influences on the development of the short story and nove l in American fiction, Hemingway has seized the imagination of the American public like no other twentiethcentury author. He died, by suicide, in Ketchum, Idaho, in 1961. H is other works include _The Torrents of Spring_ (1926), _Winner Ta ke Nothing_ (1933), _To Have and Have Not_ (1937), _The Fifth Column and the First FortyNine Stories_ (1938), _Across the River and into the Trees_ (1950), and posthumously, _A Moveable Feast_ (1964), _Islands in the Stream_ (1970), _The Dangerous Summer_ (1985), and _The Garden of Eden_ (1986). Does school prepare children for the real world? Study hard and get good grades and you will find a highpaying job with great benefits, my parents used to say. Their goal in life was to provide a college education for my older sister and me, so that we would have the greatest chance for success in life. When T finally earned my diploma in 1976graduating with honors, and near the top of my class, in accounting from Florida State University my parents had realized their goal. It was the crowning achievement of their lives. In accordance 。 their rifles were wet and under their capes the two leather cartridgeboxes on the front of the belts, gray leather boxes heavy with the packs of clips of thin, long mm. cartridges, bulged forward under the capes so that the men, passing on the road, marched as though they were six months gone with child. There were small gray motor cars that passed going very fast。 特此聲明! 作者簽名: 2021 年 06 月 01日 第 22 頁(yè) 共 23 頁(yè) In the late summer of that year we lived in a house in a village that looked across the river and the plain to the mountains. In the bed of the river there were pebbles and boulders, dry and white in the sun, and the water was clear and swiftly moving and blue in the channels. Troops went by the house and dow n the road and the dust they raised powdered the leaves of the trees. The trunks of the trees too were dusty and the leaves fell early that year and we saw the troops marching along the road and the dust rising and leaves, stirred by the breeze, falling and the soldiers marching and afterward the road bare and white except for the leaves. The plain was r ich with crops。 ( 5)學(xué)校可以公布學(xué)位論文的全部或部分內(nèi)容(保密學(xué)位論文在解密后遵守此規(guī)定)。 ( 3)學(xué)校可以學(xué)術(shù)交流為目的復(fù)制、贈(zèng)送和交換學(xué)位論文。 關(guān)于學(xué)位論文使用權(quán)和研究成果知識(shí)產(chǎn)權(quán)的說(shuō)明: 本人完全了解成都信息工程學(xué)院有關(guān)保管使用學(xué)位論文的規(guī)定,其中包括: ( 1)學(xué)校有權(quán)保管并向有關(guān)部門(mén)遞交學(xué)位論文 的原件與復(fù)印件。文中除了特別加以標(biāo)注地方外,不包含他人已經(jīng)發(fā)表或撰寫(xiě)過(guò)的研究成果,也不包含為獲得成都信息工程學(xué)院或其他教學(xué)機(jī)構(gòu)的學(xué)位或證書(shū)而使用過(guò)的材料。 第 22 頁(yè) 共 23 頁(yè) 致 謝 本文是在韓斌老師的熱情關(guān)心和指導(dǎo)下完成的,他淵博的知識(shí)和嚴(yán) 謹(jǐn)?shù)闹螌W(xué)作風(fēng)使我受益匪淺,對(duì)順利完成本課題起到了極大的作用。 [5] 微型爪哇人 .JAVA手機(jī)開(kāi)發(fā) [M].北京:中國(guó)鐵道出版社 ,2021。 第 21 頁(yè) 共 23 頁(yè) [3] 詹建飛 .J2ME開(kāi)發(fā)精解 [M].北京:電子工業(yè)出版社 ,2021。 參考文獻(xiàn) [1] 胡虛懷,楊志和,李煥 .J2ME移動(dòng)設(shè)備程序設(shè)計(jì) [M].北京:清華大學(xué)出版社 ,2021。我現(xiàn)在已經(jīng)做出的是游戲的 版本,實(shí)現(xiàn)了游戲的基本功能,離一個(gè)完全意義上的手機(jī)游戲還有一段的距離: ,還沒(méi)有經(jīng)過(guò)真機(jī)調(diào)試; ; 。就我所做的模塊來(lái)說(shuō),我對(duì) J2ME 中的菜單、聲音、畫(huà)布等技術(shù)有了更進(jìn)一步的認(rèn)識(shí) 。經(jīng)過(guò)了細(xì)心的調(diào)試和排錯(cuò)解決了絕大部分的問(wèn)題。當(dāng)繼續(xù)游戲后,游戲畫(huà)面就是我們暫停時(shí)的畫(huà)面。鑒 于此,我們決定在 MyGameCanvas 類(lèi) 的 run()內(nèi)設(shè)置一個(gè)暫停標(biāo)志量 pause。 在仔細(xì)閱讀了相關(guān)的資料后發(fā)現(xiàn)線程的創(chuàng)建和運(yùn)行是通過(guò)調(diào)用它本身的函數(shù) start()來(lái)調(diào)動(dòng) run()函數(shù)開(kāi)始運(yùn)行的, 當(dāng) run ()方法執(zhí)行完畢后 ,線程 就結(jié)束了??墒牵Ч焕硐?,我還將繼續(xù)探索更精更有效的算法。我所采用的是 通過(guò)查看背景數(shù)組和玩家坐標(biāo),來(lái)實(shí)現(xiàn)和背景的碰撞檢測(cè),但是效果不是很理想。 再者就是精靈與圖層之間的碰撞檢測(cè)即主角與磚塊之間的碰撞檢測(cè)。在 第 20 頁(yè) 共 23 頁(yè) 本游戲程序中我們使用的是后者。在彈球游戲中碰撞檢測(cè)分為倆種:精靈與精靈之間的碰撞檢測(cè)以及精靈與方塊圖層之間的碰撞檢測(cè)。在需要播放游戲中的聲音時(shí)我們就調(diào)用該類(lèi)中相應(yīng)的方法。在播放某個(gè)聲音之前我們都需要調(diào)用 stop 方法來(lái)中止聲音(如果聲音未播放則該方法無(wú)效)。 我們用 private Player createPlayer(String filename, String f, int i) 創(chuàng)建播放器。 在我們的游戲程序中的 PlayMusic 類(lèi)就是游戲中的音效類(lèi)。 SoundEffects 類(lèi)的實(shí)現(xiàn) 聲音效果是一個(gè)游戲中必不可少的部分,沒(méi)有了生動(dòng)的音樂(lè)效果,游戲的體驗(yàn)就會(huì)大打折扣。 Length * i:+Length * (i1))。amp。amp。amp。 10 + Length *(i + 1) = y + ()) { ((), Length * (i 1))。 10 + Length * i = y 第 19 頁(yè) 共 23 頁(yè) + () amp。 Length *(j + 1) = x + 3 amp。 } } //左下 if( Length * j = x + 3amp。amp。amp。amp。 10 + Length *(i + 1) = y + ()/2) { ( Length * (j + 1),())。 10 + Length * i = y + ()/2 amp。 Length *(j + 1) = x + 1 amp。 } //左 if( Length * j = x + 1 amp。 10 + Length *(i + 1) = y) { ((), 20 + Length *(i + 1))。 10 + Length * i = y amp。 Length *(j + 1) = x + () /2 amp。 j++) { if(Array[i][j] == N) { if (!) { if( Length * j = x + () /2 amp。 i++) { for(int j = 0。 public class GamePlayer extends Sprite { } 在游戲中和背景的碰撞檢測(cè)始終是個(gè)難點(diǎn),在本程序中是這樣實(shí)現(xiàn)的: public void isPeng(int x,int y,int Array[][],int N) { for(int i = 0。默認(rèn)是 (0,0)點(diǎn),如果需要,可將參考點(diǎn)設(shè)置在畫(huà)面邊界之外。由此,引 入?yún)⒖键c(diǎn)的概念。本程序中的玩家、怪物都由 Sprite 繼承得到。 Sprite 也可以從整合的圖像中讀圖,讀圖時(shí)將把大圖分解為若干等寬等高的小圖。不同的 frame 可交相顯示,構(gòu)成動(dòng)態(tài)的效果。 判斷是否輸?shù)粲螒?if(isEndGame) 判斷是否贏得游戲 if(isEndGame) 來(lái)對(duì)游戲進(jìn)行不斷監(jiān)控。 調(diào)用各種判斷和行動(dòng)的方法 PENG_ZHUANG()。 }} } } 在線程中,通過(guò) 調(diào)用創(chuàng)建關(guān)卡的方法 CREAT_STAGE()。 } else { = 。 (in)。 第 17 頁(yè) 共 23 頁(yè) } // GetScore()。 try {(3000)。 (―你勝利了! ‖,getWidth()/240,getHeight()/220,|)。 (255,255,0)。 (0,0,0)。 break。 try { (3000)。 (―你失敗了! ‖,getWidth()/240,getHeight()/220,|)。 (255,255,0)。 (0,0,0)。 if((etst)rest) { try { (rest(etst))。 //調(diào)用刷新畫(huà)面的方法 mpaint(g)。 //調(diào)用按鍵方法 PENG_ZHUANG()。 StartGameTime = ()。 while(flag) //游戲正式開(kāi)始 { while(ispause) //判斷是否按下暫停 { try{ (100)。} catch (InterruptedException e1) {} mpaint(g)。} catch (InterruptedException e1) {} CREAT_STAG