坦克大战毕业论文(2)

2019-03-10 15:35

Abstract

This thesis’ first chapter describes the development of domestic and international games, chapter II describes some game programming techniques and principles, Chapter 3 start is the overall design of the battle, the game has an overall design, Chapter 4 describes the detailed design, game specific implementations in this chapter, chapter v is describes the program's design innovations, concluded.

Battle with VC it, prepare a variety of pictures, and then use a timer to these pictures on the screen has been repainted. The input through the keyboard to change the control tanks; the bullet hit the enemy, the enemy of the explosion, the same enemies move or be placed bullet, enemy bullet our tank will disappear; the enemy tank explosion is the number 0 when enter the next level, self number 0 tank game over, and scoring statistics; and finally joined the game sound. This game is the display problem, as has been refreshed, the "splash screen" phenomenon, "with" double buffering can solve this problem. Set transparent color can make graphic display more beautiful.

Key words: Tank Battle; game; timer; double buffering

II

目 录

摘要 ................................................................................................................... I Abstract .......................................................................................................... II 目 录 ......................................................................................................... III 1章 游戏的发展状况 ...................................................................................... 1 1.1 背景 ........................................................................................................ 1 1.2 著名的游戏公司简介 ............................................................................ 3 1.3 国外游戏发展状况 ................................................................................ 5 1.3.1 欧美游戏制作现状 ......................................................................... 5 1.3.2 韩国游戏制作现状 ......................................................................... 5 1.3.3 日本游戏制作现状 ......................................................................... 6 1.3.4 台湾地区游戏制作现状 ................................................................. 6 1.4 国内的发展状况 .................................................................................... 6 1.4.1 萌芽期 ............................................................................................. 7 1.4.2 创业期 ............................................................................................. 7 1.4.3 发展期 ............................................................................................. 8 第2章 游戏设计原理及技术 ....................................................................... 11 2.1 游戏类型 .............................................................................................. 11 2.2 游戏开发的各个阶段 .......................................................................... 12 2.2.1 早期阶段 ....................................................................................... 13 2.2.2 生产阶段 ....................................................................................... 13 2.2.3 生成包装阶段 ............................................................................... 13 2.2.4 测试阶段 ....................................................................................... 13 2.2.5 发布阶段 ....................................................................................... 13 2.3 游戏一般循环过程 .............................................................................. 14 2.4 游戏一般架构 ...................................................................................... 15 2.4.1 平台独立性与平台相关性 ........................................................... 15 2.4.2 游戏独立性和游戏相关性 ........................................................... 15 2.4.3 对象组合与对象继承 ................................................................... 15 2.4.4 基于帧的和基于函数的设计 ....................................................... 16 2.4.5 动态和静态操作顺序 ................................................................... 16 2.4.6 动态和静态对象生命期(以及所有权) ................................... 17 2.4.7 任务的水平集成和垂直集成 ....................................................... 17 2.5 游戏设计中应该注意的问题 .............................................................. 18 2.5.1 深度vs宽度 ................................................................................. 18 2.5.2 立即存盘的取舍 ........................................................................... 19

III

2.5.3 立即存盘为何如此困难 ............................................................... 19 2.5.4 独立于文化的游戏设计 ............................................................... 20 2.5.5 游戏设计与文化和政治敏感问题 ............................................... 20 第3章 坦克大战总体设计 ........................................................................... 21 3.1 总体设计 .............................................................................................. 21 3.1.1 运行环境 ....................................................................................... 21 3.1.2 基本设计和处理流程 ................................................................... 21 3.1.3 结构 ............................................................................................... 21 3.1.4 功能总述 ....................................................................................... 22 3.2 接口设计 .............................................................................................. 23 3.2.1 游戏存取问题 ............................................................................... 23 3.2.2 声音控制问题 ............................................................................... 23 3.2.3 键盘设置问题 ............................................................................... 23 3.2.4 坦克速度设置问题 ....................................................................... 23 3.2.5 总体游戏速度设置问题 ............................................................... 23 3.3 界面设计 .............................................................................................. 23 3.3.1 游戏界面 ....................................................................................... 23 第4章 详细设计 ........................................................................................... 25 4.1 程序系统结构 ...................................................................................... 25 4.1.1 主程序 ........................................................................................... 25 4.1.2 用户自定义控件 ........................................................................... 25 4.1.3 系统的总体流程图 ....................................................................... 25 4.2 功能实现 .............................................................................................. 26 4.2.1 启动画面 ....................................................................................... 26 4.2.2 计时器 ........................................................................................... 27 4.2.3 键盘消息 ....................................................................................... 28 4.2.4 鼠标消息 ....................................................................................... 29 4.2.5 游戏开始暂停 ............................................................................... 29 4.2.6 图形按钮 ....................................................................................... 31 4.2.7 坦克控制 ....................................................................................... 31 4.2.8 坦克发子弹 ................................................................................... 33 4.2.9 障碍物设计 ................................................................................... 34 4.2.10 敌人坦克显示 ............................................................................. 34 4.2.11 敌人坦克AI ................................................................................ 35 4.2.12 敌人坦克移动判断 ..................................................................... 36 4.2.13 敌人发子弹、子弹移动 ............................................................. 36 4.2.14 子弹越界判断 ............................................................................. 37 4.2.15 己方子弹打中敌人、敌人爆炸 ................................................. 37

IV

4.2.16 敌人坦克子弹打中我方坦克、我方坦克爆炸 ......................... 38 4.2.17 我方坦克的重生 ......................................................................... 38 4.2.18 敌人坦克的重生 ......................................................................... 39 4.2.19 打分系统以及坦克数显示 ......................................................... 39 4.2.20 为游戏添加声音 ......................................................................... 40 4.2.21 其他非游戏功能 ......................................................................... 41 第5章 程序创新点 ....................................................................................... 43 5.1 双缓冲技术 .......................................................................................... 43 5.2 图形按钮实现 ...................................................................................... 43 5.3 计时器的使用 ...................................................................................... 43 5.4 设置透明色 .......................................................................................... 44 第6章 总结 ................................................................................................... 45 致 谢 ............................................................................................................... 46 参考文献 ......................................................................................................... 47 附 录 ............................................................................................................... 48 附录A: 主要源程序 .................................................................................. 48 附录B: 软件使用说明书 .......................................................................... 69

V


坦克大战毕业论文(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:临床试验观察表(CRF)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: