基于ANM9开发板的扫雷游戏设计
目录
摘要 .................................................................................................................................................................. I Abstract ........................................................................................................................................................... II 第一章 概述 ................................................................................................................................................. 1
1.1 扫雷简介 .......................................................................................................................................... 1 1.2 ARM9简介 ....................................................................................................................................... 1 1.3 Linux系统简介 ................................................................................................................................ 1 1.4 QT简介 ............................................................................................................................................ 2 1.5 C++简介 ............................................................................................................................................ 2 1.6 课题研究的背景和意义 .................................................................................................................. 2 第二章 总体设计思路 ................................................................................................................................. 4
2.1 设计总体思路 .................................................................................................................................. 4 2.2 扫雷游戏主要功能 .......................................................................................................................... 5 2.3 设计的软件 ...................................................................................................................................... 7 2.4 设计的环境 ...................................................................................................................................... 8 2.5 设计的语言 ...................................................................................................................................... 8 2.6 设计的平台 ...................................................................................................................................... 9 第三章 软件部分设计 ............................................................................................................................... 12
3.1 视图和场景的设计 ........................................................................................................................ 12
3.1.1 视图的设计 ......................................................................................................................... 12 3.1.2 场景的设计 ......................................................................................................................... 13 3.1.3 视图中控件和动作的设计 ................................................................................................. 14 3.2 STL数据的设计 ............................................................................................................................. 16
3.2.1 STL的设计 .......................................................................................................................... 16 3.2.2 数据的设计 ......................................................................................................................... 18 3.3 STL图片的设计 ............................................................................................................................. 19
3.3.1 图片的选取和加载 ............................................................................................................. 19 3.3.2 图片坐标的设计 ................................................................................................................. 22 3.4 功能程序块的设计 ........................................................................................................................ 23
3.4.1 鼠标事件 ............................................................................................................................. 23 3.4.2 图片交换的设计 ................................................................................................................. 25 3.4.3 爆炸和递归的设计 ............................................................................................................. 25 3.4.4 初始化的设计 ..................................................................................................................... 26
第四章 硬件部分的设计 ........................................................................................................................... 27
4.1 硬件介绍 ........................................................................................................................................ 27
4.1.1 开发板简介 ......................................................................................................................... 27 4.1.2 CPU简介 ............................................................................................................................. 28 4.1.3 USB接口 ............................................................................................................................. 29 4.1.4 电源系统及接口 ................................................................................................................. 29 4.1.5 复位系统 ............................................................................................................................. 30 3.1.6 FLASH 存储系统 ............................................................................................................... 30 4.2 开发平台的设计 ............................................................................................................................ 31
4.2.1 交叉编译环境的搭建 ......................................................................................................... 32 4.2.2 linux内核配置和编译 ......................................................................................................... 33 4.3 QT应用的移植 ............................................................................................................................... 34
第五章 调试与测试 ................................................................................................................................... 36 总结 ............................................................................................................................................................... 39 参考文献 ....................................................................................................................................................... 41 附录 扫雷程序及注释 ............................................................................................................................... 42
基于ARM9开发板的扫雷游戏设计 基于ARM9开发板的扫雷游戏设计
摘要:随着时代的进步,现在已进入移动互联网时代,智能手机,平板电脑等移动设备越来越受到人们的欢迎。移动设备因为其的方便性,移动设备将是未来通信,上网,娱乐的主体。
在人们紧张的工作学习之余,在外出旅游之余,可以随时随地拿出移动设备玩一盘游戏给自己带来欢乐与放松,也可以放松自己的心情,缓解自己的工作和学习压力。
扫雷是很多操作系统自带的一款小游戏,几乎每个电脑使用者都接触过这款游戏,并且深爱着这款小游戏。扫雷游戏是非常经典的一款小游戏,实现它的方法很多,可以用C,C++,VB,JAVA等很多语言。本设计主要是以QT作为开发软件,在linux系统中用C++设计并开发的一款扫雷游戏,最后移植到ARM9开发板上,以ARM9开发板作为测试和运行扫雷游戏,实现移动设备上的扫雷游戏。
本设计的扫雷游戏功能基本上和window系统上的相同。利用QT软件的良好的图形界面做出扫雷游戏的图形界面,利用C++的方便和QT强大的类库来实现扫雷的基本功能,利用QT的兼容性强以及linux系统良好的移植性能来移植到ARM9开发板上来实现移动设备上的扫雷游戏。
论文首先介绍了C++,QT,linux系统,ARM9等本设计中用到的东西。然后介绍了总体设计思路,在linux系统下以及QT软件中用C++分模块设计出扫雷游戏的每个模块,最后移植到ARM9开发板上,实现本次设计。 关键字:扫雷、QT、linux、ARM9
I
基于ANM9开发板的扫雷游戏设计 Minesweeping game design of arm9-based development
board
Abstract:Along with the progress of The Times, and now has entered the era of mobile Internet, smart phones, tablets and other mobile devices more and more get the welcome of people. Mobile devices because of its convenience, mobile devices will be the future communication, the Internet, the main body of entertainment.
In the tense work and study, travel, can take out mobile devices anytime and anywhere to play a game to cheer myself and relaxation, can also relax the mood, reduce the pressure on their work and study.
Minesweeping is many operating system comes with a small game, almost every computer users are exposed to the game, and deeply in love with this little game. Minesweeping game is a classic game, a lot of ways for it, you can use C, C + +, VB, JAVA, etc. A lot of language. This design mainly is the QT as the development software, a Linux system using c + + design and development of a mine clearance game, finally ported to the ARM9 development board, with ARM9 development board as a test and run the minesweeper, realize minesweeping game on a mobile device. ? This design of mine clearance game function and window system is
basically the same. Using the QT software good graphical interface made minesweeper graphical interface, convenient using c + + and QT powerful class library to realize the basic function of mine, using QT strong compatibility and good transplantation Linux system performance to transplant to the ARM9 development board up minesweeping game on a mobile device.
Paper first introduces the c + +, QT, Linux system, this design used
II
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库基于ARM9开发板的扫雷游戏设计(2)在线全文阅读。
相关推荐: