需要金幣:![]() ![]() |
資料包括:完整論文 | ![]() |
![]() |
轉(zhuǎn)換比率:金額 X 10=金幣數(shù)量, 例100元=1000金幣 | 論文字?jǐn)?shù):9180 | ![]() | |
折扣與優(yōu)惠:團(tuán)購(gòu)最低可5折優(yōu)惠 - 了解詳情 | 論文格式:Word格式(*.doc) | ![]() |
摘要:隨著科技的發(fā)展,現(xiàn)代生活節(jié)奏越來越快,人們的工作生活壓力也隨之加大。設(shè)計(jì)一款操作簡(jiǎn)單,生動(dòng)新穎,娛樂性強(qiáng),便于攜帶的小游戲,在繁忙的工作生活之余玩玩這款小游戲,不僅可以調(diào)節(jié)人們的情緒,使人心情舒暢,還能健腦益智,為更好地投入工作學(xué)習(xí)做好準(zhǔn)備。 本文基于51單片機(jī)設(shè)計(jì)的貪食蛇游戲,除了具有傳統(tǒng)意義上的貪食蛇游戲的特點(diǎn):吃食物蛇身增長(zhǎng),得分;分?jǐn)?shù)達(dá)到一定等級(jí)進(jìn)行升級(jí)以后,蛇運(yùn)動(dòng)速度加快等以外,本次設(shè)計(jì)加入了游戲暫停,中途退出。為節(jié)省存儲(chǔ)空間,具體實(shí)現(xiàn)上,硬件系統(tǒng)平臺(tái)采用51系列單片機(jī),搭載32x32點(diǎn)陣LED,獨(dú)立鍵盤,構(gòu)成了一個(gè)輕巧便攜的游戲機(jī)系統(tǒng)。STC12C5A60S2單片機(jī)技術(shù)成熟,功能強(qiáng)大,應(yīng)用廣泛。使用單片機(jī)作為控制核心,可以簡(jiǎn)化硬件電路,采用軟件編程控制單片機(jī)實(shí)現(xiàn)硬件電路的功能,降低能耗,降低成本。軟件采用C語言編程,方便靈活,大大加快了軟件開發(fā)速度,縮短了開發(fā)周期,并且便于移植。文中具體介紹了使用到的各種硬件的特性,游戲的各種功能與詳細(xì)設(shè)計(jì),軟件的具體設(shè)計(jì)思路,各模塊的詳細(xì)介紹,部分模塊的程序流程圖,關(guān)鍵部分代碼的詳細(xì)講解等。 關(guān)鍵詞: STC12C5A60S2;游戲;點(diǎn)陣屏;貪食蛇
Abstract:With the development of science and technology, the increasingly fast pace of modern life, people's work life pressure also will increase. Design a simple operation, vivid novel, entertaining, portable game, this game I play in a busy working life, not only can adjust the mood of the people, people with good feelings, but brain benefits intelligence, learning to prepare for better work. Based on the Snake game in 51 single-chip design, in addition to the characteristics of the Snake game in the traditional sense: eat snake growth, the score; the score reaches a certain level to be upgraded later, the snake movement speed beyond the design joined the game to pause, to quit. To save storage space, specifically on the hardware platform with STC12C5A60S2, equipped 32x32 dot matrix LED, keyboard, constitute a lightweight portable video game system. 51 Series single-chip technology is mature, powerful, and widely used. Use a microcontroller as the core of the hardware circuit can be simplified using the functionality of the software-programmable microcontroller hardware circuit, reduce energy consumption and reduce costs. The software uses the C programming language, convenient and flexible, and greatly accelerate the speed of software development, shorten the development cycle, and portable. The specific characteristics of the various hardware used, the game's various features and detailed design, software design ideas, the detailed description of each module, some modules of the program flow chart, the key part of the code explained in detail. Key words:STC12C5A60S2;game;lattice screen;snake
對(duì)系統(tǒng)內(nèi)容進(jìn)行分析,深入地進(jìn)行資料收集和文獻(xiàn)閱讀,跟據(jù)國(guó)內(nèi)外高校教師教學(xué)質(zhì)量測(cè)評(píng)軟件的理論研究和實(shí)證研究的最新動(dòng)向,并對(duì)文獻(xiàn)資料進(jìn)行編譯、分類、比較與分析,在網(wǎng)上采取調(diào)查,尋找最新理論工具。本文通過對(duì)貪食蛇游戲的深入了解,對(duì)貪食蛇游戲功能的實(shí)現(xiàn)等優(yōu)點(diǎn)進(jìn)行深入研究。 傳統(tǒng)的點(diǎn)陣貪食蛇游戲,其點(diǎn)陣是由分立LED組合而成,也忽略了人性化設(shè)計(jì)方面,而單片機(jī)和點(diǎn)陣屏組合的貪食蛇游戲設(shè)計(jì)解決了這些難題,采用8*8點(diǎn)陣模塊可以很好的對(duì)輸出顯示,以及根據(jù)界面提示,便能很好進(jìn)行貪食蛇游戲。 (1)利用Protel軟件對(duì)該系統(tǒng)進(jìn)行電路圖的繪制。 (2)利用萬用板,純手工制作實(shí)物圖,單片機(jī)的最小系統(tǒng),并將其引腳以排陣的形式引出,方便以后做開發(fā)設(shè)計(jì)以及利用杜邦線接入其余電路配合調(diào)試使用,利用SPI接口的595IC設(shè)置點(diǎn)陣屏的行列驅(qū)動(dòng)。 ?。?)利用C51測(cè)試程序,檢測(cè)單片機(jī)最小系統(tǒng)能否正常工作,同時(shí)驅(qū)動(dòng)點(diǎn)陣屏,看有無壞點(diǎn)現(xiàn)象,如有壞點(diǎn)則換相應(yīng)的8*8點(diǎn)陣屏模塊,以免造成其余影響。
|