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

正文內(nèi)容

基于嵌入式wince開發(fā)的貪吃蛇游戲-資料下載頁(yè)

2025-06-23 07:40本頁(yè)面
  

【正文】 按左功能鍵后,貪吃蛇蛇頭向上移動(dòng),說(shuō)明向上按鍵功能正確。通過(guò)觀察上圖和前一個(gè)狀態(tài)的變化,我們發(fā)現(xiàn)此圖顯示了按右功能鍵后,貪吃蛇蛇頭向上移動(dòng),說(shuō)明向上按鍵功能正確。當(dāng)蛇死亡時(shí),我們需要回到初始化界面,進(jìn)行游戲的重玩,這時(shí),我們需要按鍵回車鍵進(jìn)行游戲的重新初始化工作,我們現(xiàn)在來(lái)進(jìn)行回車鍵功能的測(cè)試工作,如下圖所示:通過(guò)觀察上圖和前一個(gè)狀態(tài)的變化,我們發(fā)現(xiàn)當(dāng)我們按下回車鍵時(shí),游戲重新回到初始化界面,說(shuō)明此功能正確,測(cè)試結(jié)束。 分?jǐn)?shù)和關(guān)卡測(cè)試玩家在進(jìn)行游戲的比賽時(shí),需要有個(gè)分?jǐn)?shù)來(lái)進(jìn)行統(tǒng)計(jì),這個(gè)分?jǐn)?shù)用來(lái)進(jìn)行比較玩家的能力高低,我們要進(jìn)行這個(gè)功能的測(cè)試,看是否隨著吃到游戲果實(shí)的增加,對(duì)應(yīng)的分?jǐn)?shù)也相應(yīng)的增加,同時(shí)當(dāng)玩家達(dá)到一定的分?jǐn)?shù)后,是不是關(guān)卡也隨之增加,我們開始進(jìn)行游戲的初始化界面如下:按下空格鍵,開始游戲,進(jìn)行測(cè)試,玩家通過(guò)開始一段時(shí)間的游戲后,觀察上圖右面部分,分?jǐn)?shù)和關(guān)卡數(shù)的文本框的變化情況,是不是和游戲規(guī)則里面的描述相符合,我們觀察下面的截圖,進(jìn)行判斷:通過(guò)玩家一段時(shí)間的游戲后,此時(shí)顯示對(duì)應(yīng)的分?jǐn)?shù)為495分,不是初始化的0分,對(duì)應(yīng)的關(guān)卡是4關(guān),與目標(biāo)測(cè)試結(jié)果相符合,說(shuō)明功能正確,測(cè)試結(jié)束??偨Y(jié)與展望本論文描述了基于winCE設(shè)計(jì)思想開發(fā)的貪吃蛇游戲功能,采用了軟硬件相結(jié)合的嵌入式設(shè)計(jì)方案,開拓了自己對(duì)嵌入式領(lǐng)域的認(rèn)知,,最后經(jīng)過(guò)一系列的功能測(cè)試,下載內(nèi)核,調(diào)試實(shí)驗(yàn)開發(fā)板,完成了能夠在實(shí)驗(yàn)板上運(yùn)行的貪吃蛇游戲,總體來(lái)說(shuō),本次設(shè)計(jì)主要有幾下幾個(gè)特點(diǎn):1. ,較其他嵌入式操作系統(tǒng)而言,具有的優(yōu)勢(shì)是:良好的操作界面、實(shí)時(shí)性較高、占用資源少、開發(fā)工具豐富以及強(qiáng)大的技術(shù)支持等等。2. 作為嵌入式程序設(shè)計(jì),具有方便簡(jiǎn)易的特性,我們定制的系統(tǒng)只需要夠用即可,嵌入式的核心思維就是簡(jiǎn)易。3. 作為基于winCE嵌入式程序的開發(fā),提供了一個(gè)完整的過(guò)程,從一開始定制內(nèi)核到下載內(nèi)核,程序的編寫直至最后程序在板子上調(diào)試運(yùn)行給初學(xué)者帶來(lái)了一個(gè)整體的指導(dǎo),方便學(xué)習(xí)基于winCE嵌入式。然而,目前設(shè)計(jì)的基于嵌入式winCE貪吃蛇游戲還處于較原始的階段,實(shí)現(xiàn)的功能還不夠完善,但隨著相關(guān)技術(shù)的成熟和軟硬件平臺(tái)的發(fā)展,完善相關(guān)的游戲功能,使之更加完善,界面更加可視化,這樣我相信對(duì)于初學(xué)嵌入式的人來(lái)說(shuō)會(huì)有很大的幫組。致謝時(shí)光飛逝,四年的大學(xué)生活轉(zhuǎn)瞬即逝。但這寶貴的四年求學(xué)生涯讓我成長(zhǎng)了不少。首先我要深深的感謝我的恩師吳磊老師,在本次設(shè)計(jì)期間給予我悉心的指導(dǎo)。從論文題目的選定到方案的確定,再到具體的設(shè)計(jì)實(shí)現(xiàn)和論文的審核,無(wú)不傾注了吳老師的心血和辛勞。在這寶貴的四年時(shí)光里,吳老師淵博的知識(shí)、嚴(yán)謹(jǐn)?shù)慕虒W(xué)態(tài)度令我欽佩不已。同時(shí),吳老師在學(xué)習(xí)上嚴(yán)格督促我,生活上給予我無(wú)微不至的關(guān)懷和幫助。從吳老師那里,不僅學(xué)到了許多的專業(yè)知識(shí),而且學(xué)會(huì)了一些學(xué)習(xí)的方法和為人處事的道理,對(duì)我以后的工作學(xué)習(xí),影響是非常深遠(yuǎn)的。在這里深深的祝福吳老師工作順利、家庭幸福。其次需要感謝計(jì)算機(jī)一班的同學(xué)們,四年的同窗生涯,在學(xué)習(xí)生活上給了我許多無(wú)私熱情的幫助。尤其是班長(zhǎng)團(tuán)委等同學(xué)在學(xué)習(xí)和生活的團(tuán)結(jié)互助中建立了深厚的友誼,一生都會(huì)好好珍惜。最后感謝我的父母,在我最困難的時(shí)候,他們始終給我最有力的支持和理解。正是因?yàn)槟銈兊闹С趾屠斫?,我才能在失敗和困難面前信心百倍,無(wú)所畏懼。在此一并致謝。參考文獻(xiàn)和注釋[1] 傅曦,[J].人民郵電出版社,2006年6月[2] [J].北京航天航空大學(xué)出版社,2006年[3] 張冬泉,[J].電子工業(yè)出版社,2006年[4] 劉大鵬,[J].微型電腦應(yīng)用,2002年8月,18卷,8期:4344[5] 70Samp。[J].廣州致遠(yuǎn)電子有限公司,2008年[6] 張晶,[J].嵌入式操作系統(tǒng)應(yīng)用,2008年5月:39一42[7] 程序設(shè)計(jì)VisualC++++[J].電子工業(yè)出版社,2000年12月 [8] ++[J].清華大學(xué)出版社,2006年[9] ++入門、進(jìn)階與應(yīng)用實(shí)例[J].人民郵電出版社,2007年外文資料翻譯及原文翻譯原文The Windows Programming ModelPrograms written for traditional operating environments use a procedural programming model in which programs execute from top to bottom in an orderly fashion. The path taken from start to finish may vary with each invocation of the program depending on the input it receives or the conditions under which it is run, but the path remains fairly predictable. In a C program, execution begins with the first line in the function named main and ends when main returns. In between, main might call other functions and these functions might call even more functions, but ultimately it is the program—not the operating system—that determines what gets called and when. Windows programs operate differently. They use the eventdriven programming model illustrated in Figure 11, in which applications respond to events by processing messages sent by the operating system. An event could be a keystroke, a mouse click, or a mand for a window to repaint itself, among other things. The entry point for a Windows program is a function named WinMain, but most of the action takes place in a function known as the window procedure. The window procedure processes messages sent to the window. WinMain creates that window and then enters a message loop, alternately retrieving messages and dispatching them to the window procedure. Messages wait in a message queue until they are retrieved. A typical Windows application performs the bulk of its processing in response to the messages it receives, and in between messages, it does little except wait for the next message to arrive. The message loop ends when a WM_QUIT message is retrieved from the message queue, signaling that it39。s time for the application to end. This message usually appears because the user selected Exit from the File menu, clicked the close button (the small button with an X in the window39。s upper right corner), or selected Close from the window39。s system menu. When the message loop ends, WinMain returns and the application terminates. Figure 11. The Windows programming model. The window procedure typically calls other functions to help process the messages it receives. It can call functions local to the application, or it can call API functions provided by Windows. API functions are contained in special modules known as dynamiclink libraries, or DLLs. The Win32 API includes hundreds of functions that an application can call to perform various tasks such as creating a window, drawing a line, and performing file input and output. In C, the window procedure is typically implemented as a monolithic function containing a large switch statement with cases for individual messages. The code provided to process a particular message is known as a message handler. Messages that an application doesn39。t process are passed on to an API function named DefWindowProc, which provides default responses to unprocessed messages. Messages, Messages, and More MessagesWhere do messages e from, and what kinds of information do they convey? Windows defines hundreds of different message types. Most messages have names that begin with the letters WM and an underscore, as in WM_CREATE and WM_PAINT. These messages can be classified in various ways, but for the moment classification is not nearly as important as realizing the critical role messages play in the operation of an application. The following table shows 10 of the most mon messages. A window receives a WM_PAINT message, for example, when its interior needs repainting. One way to characterize a Windows program is to think of it as a collection of message handlers. To a large extent, it is a program39。s unique way of responding to messages that gives it its personality. Common Windows MessagesMessageSent WhenWM_CHARA character is input from the keyboard.WM_COMMANDThe user selects an item from a menu, or a control sends a notification to its parent.WM_CREATEA window is created.WM_DESTROYA window is destroyed.WM_LBUTTONDOWNThe left mouse button is pressed.WM_LBUTTONUPThe left mouse button is released.WM_MOUSEMOVE The mouse pointer is moved.WM_PAINTA window needs repainting.WM_QUITThe application is about to termin
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1