Java单机版游戏乌龟快跑的设计与实现

Java单机版游戏乌龟快跑的设计与实现[20200418170741]
摘 要
 *查看完整论文请 +Q: 3 5 1 9 1 6 0 7 2 
关键字:游戏设计;java技术;游戏
伴随着互联网时代的蓬勃发展,电子游戏已成为人们日常生活方式中的一部分,游戏产业已发展成为一个拥有巨大利润的成熟产业。从街机到家用游戏机,再到掌上游戏机,游戏产业发展迅速。到现在为止,中国游戏市场已经成为国际公认的最具发展潜力的市场,游戏行业虽然在我国起步晚,但开展的势头十分迅猛。
本次课题主要根据时下游戏的发展趋势,编写一个操作简单,娱乐性强的电脑小游戏“乌龟快跑”,乌龟快跑是以飞扬的小鸟为基础进行改进的。它使用Myeclipse作为编译平台,利用java的简单性,可移植性,平台无关性等优点来编写一个单机版的小游戏。本课题主要是完成海底的运动,海底柱子的移动,乌龟的运动和乌龟的碰撞检测等功能,并且采用极具人性化的界面设计,使操作简单易懂。本系该游戏开发的目标是提高我们的程序编写能力和分析问题解决问题的能力,达到熟练掌握java 的技术和熟悉软件流程开发的目的。
ABSTRACT
With the rapid development of the Internet, electronic game has become an important part of peoples daily life. In recent years, the game industry has become a enormous profits and mature industry. From arcade to console, and then to the palm game machine, the game industry develop quickly in recent years. So far, the Chinese game market has become the most potential market which is recognized by the international, although the game industry in China started late.
In this work, according to the current development trend of the game, we will develop and design a game. The name of the game is "turtle run", and it is finished based on the flying bird. Myeclipse is used as the compiler platform, and Java is employed as the program language. This game can realize some function, such as the movement of the seabed, the movement of the seabed column, the movement of the turtle and the tortoise collision detection and so on. The aim to design this system is to improve my ability of writing program and the ability of solving problem.
Key words: Electronic Design; Java Technology; Games
目录
一、 前言 1
(一)研究背景 1
(二)国内外研究现状 1
(三)研究目的和意义 2
二、 系统分析 3
(一)系统分析方法 3
(二)可行性分析 3
1.技术可行性 3
2.经济可行性 3
三、 系统设计与实现 5
(一)系统总体结构设计 5
(二)乌龟快跑游戏的设计 6
1.概要 6
1.1Java的开发和运行平台 6
1.2Java的开发环境 6
1.3Java的编辑环境 7
1.4Java的运行环境 7
2.游戏说明 7
2.1乌龟快跑的简介 7
2.2乌龟快跑的游戏规则 7
2.3游戏操作界面 8
3.软件开发过程 8
3.1需求分析 8
3.2软件需求分析 8
3.3软件概要设计 9
3.4类的设计 9
4.程序说明 9
4.1新建工程和包 9
4.2新建工程的结构 10
4.3为TortoiseGame类添加属性 11
4.4为Ground类添加属性 11
4.5为Column类添加属性 11
4.6为Tortoise类添加属性 12
4.7为TortoiseGame类添加构造方法,初始化属性 12
4.8为Column类添加构造方法,初始化属性 12
4.9为Ground类添加构造方法,初始化属性 13
4.10为Tortoise类添加构造方法,初始化属性 13
4.11编写main方法 13
4.12绘制界面 14
4.13运行 14
4.14实现地面的运动 15
4.15实现柱子的移动 16
4.16实现乌龟的移动 16
4.17实现鼠标事件 17
4.18实现记分 17
4.19实现乌龟的碰撞检测 17
4.20实现游戏的开始结束及重新开始 19
4.21鼠标按下时各个状态是如何运转的 20
五、结论 21
六、参考文献 23
七、致谢 25
一、前言
(一)研究背景
随着互联网时代电子信息技术的蓬勃发展,从街机到家用游戏机再到掌上游戏机,我们能够清楚的发现电子游戏已成为人们日常生活中的一部分。现在的生活节奏正在变快,人们要工作学习,还要花时间耗费在往返的路途上,也没有太多的时间呆在电视机前看电视,这样枯燥无味的生活人们无法排解自己的压力,但是电子游戏比传统的休闲文娱方式更具有科学性,互动性,可以使消费者犹如身临其境,能充分感触到他的逼真性和刺激性,而且又能锻炼人的体能和智能,所以在这种状况下自然而然的激发了电脑游戏的飞速崛起[1,2]。

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/jsj/jsjkxyjs/3171.html

好棒文