资源预览内容
第1页 / 共60页
第2页 / 共60页
第3页 / 共60页
第4页 / 共60页
第5页 / 共60页
第6页 / 共60页
第7页 / 共60页
第8页 / 共60页
第9页 / 共60页
第10页 / 共60页
亲,该文档总共60页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
北京邮电大学毕业设计 i基于 Qt 的贪吃蛇游戏设计与实现摘要随着社会的发展,人们生活的步调日益加快,越来越多的人加入了全球化的世界。人们不再拘泥于一小块天地,加班、出差成为现代人不可避免的公务。而此时一款可以随时随地娱乐的游戏成了必需品。贪吃蛇简单易行、操作方便、娱乐性极强,很好地满足了玩家的需求。本系统开发平台为 Windows7,应用基于 Qt 跨平台的图形用户界面应用程序框架,程序设计语言采用 C+。在系统设计过程中,使用了面向对象的分析、设计方法。完全采用软件工程的方法进行需求分析、总体设计、总体实现和测试。在程序设计中,探讨了用图形框架的方法解决问题,对设计其他图形用户界面具有重要的实际意义。本设计实现了一个简单的贪吃蛇小游戏,该游戏不仅实现了简单的游戏操作功能,还实现了灵活的运作功能,而且具有简洁大方的图文外观。此系统具有良好的界面和必要的交互信息,使操作人员能快捷简单的进行操作,给玩家一个有趣的游戏。关键词 Qt;程序设计语言 C+;贪吃蛇Snake game design and implementation based on Qt北京邮电大学毕业设计 iiAbstractWith the development of the society, the quickening pace of life, people more and more people joined the globalization of the world.People are no longer limited to a small piece of heaven and earth, overtime, travel inevitably a modern business.At a time when a anywhere entertainment game became a necessity.Snake is simple, easy to operate, entertainment is extremely strong, well meet the requirements of the player.Application development platform for Windows 7, this system is based on Qt cross-platform GUI application framework, using c + + programming language.In the process of system design, using the object-oriented analysis and design method.Completely using the method of software engineering needs analysis, overall design, implementation and testing as a whole.In programming, discusses the method of using graphical framework to solve the problem, the design of other graphical user interface (GUI) has important practical significance.This design implements a simple snake game, the game is not only realize the function of simple operation, and realize the function of flexible operation, and has a concise and easy by appearance.This system has a good interface and the interaction of the necessary information, allow the operator to quick and easy to operate, to give the players a fun game.Key words Qt; C + + programming language; snake 目 录摘要 .iAbstract.ii绪论 .11 嵌入式系统 .21.1 嵌入式系统 .21.2 组成 .21.2.1 硬件层 .21.2.2 中间层 .31.3 特点 .31.3.1 可裁剪性 .31.3.2 强实时性 .41.3.3 统一的接口 .41.3.4 方便 .41.3.5 强稳定性,弱交互性 .41.3.6 固化代码 .41.3.7 适应性 .42 开发环境及关键技术 .52.1 Qt.52.2 信号和槽机制 .52.2.1 信号 .62.2.2 槽函数 .62.3 布局管理 .62.4 程序启动画面 QSplashScreen 类 .72.5 QTimer 类 .82.6 二维图形的绘制方法 .82.7 右键菜单 .93 可行性分析 .103.1 研究目的 .103.2 开发的可行性 .103.2.1 操作可行性 .103.2.2 技术可行性 .103.2.3 经济可行性 .103.3 专业术语 .113.4 条件基础 .113.5 实现目标 .113.6 可行性研究方法 .113.7 结论意见 .114 需求分析 .124.1 研究目的 .124.2 开发背景 .124.3 任务概述 .134.3.1 目标 .134.3.2 用户特点 .13 4.4 需求规定 .134.4.1 对功能的规定
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号