目 录

 

ABSTRACT

1  绪论

2  开发环境及相关技术的介绍

2.1  开发环境

2.2  Java语言特点

2.3 本章小结

3  程序结构、思想和相关技术

3.1 本程序需要解决的主要技术问题

3.2 PNG图片格式

3.3 内存的优化

3.4 关于混淆器

3.5 本章小结

4  程序分析和具体实现

4.1 贪吃蛇游戏的规则简介以及开发环境

4.1.1 贪吃蛇游戏的规则简介

4.1.2 开发环境

4.2 详细设计

4.2.1 操作流程

4.2.2 代码设计

4.3本章小结

5  测试

5.1 游戏的调试

5.2 游戏的运行环境

6  总结

6.1 本程序的总结和展望

6.2 感想

 

参考文献

 

 

 

摘 要

近年来,Java作为一种新的编程语言,以其简单性、可移植性和平台无关性等优点,得到了广泛地应用,特别是Java与万维网的完美结合,使其成为网络编程和嵌入式编程领域的首选编程语言。JBuilder是Borland公司用于快速开发Java应用的一款优秀的集成开发环境,它以其友好的开发界面、强大的组件支持等优点,得到广大程序员的接受和认可。

“贪吃蛇”游戏是一个经典的游戏,它因操作简单、娱乐性强而广受欢迎。本文基于Java技术和JBuilder开发环境,开发了一个操作简单、界面美观、功能较齐全的“贪吃蛇”游戏。整个游戏程序分为二个功能模块,六个类模块,实现了游戏的开始、暂停、结束。通过本游戏的开发,达到学习Java技术和熟悉软件开发流程的目的。

本文在介绍Java 相关技术和国内外发展现状的基础上,对“贪吃蛇”游戏的整个生命周期的各个开发阶段进行了详细地介绍。首先,分析了开发本游戏软件的可行性,重点分析本设计所采用的技术的可行性。其次,从游戏主界面等几方面,分析了本游戏的功能需求;从可使用性和安全性方面分析了属性需求。然后,进行了游戏的概要设计和详细设计,这也是本文的重点。概要设计给出二个功能模块的主框架以及六个类模块的函数调用关系;详细设计介绍了Java标准运行环境的配置,重点给出各个类模块的程序流程图以及UML图,列表介绍了各个类包含的变量、使用的方法,展示了游戏的界面。为了保证程序代码的正确性和功能实现的可靠性,本文还介绍了游戏软件的程序调试和功能测试结果,并且对本设计的成果和不足进行了总结。最后,本文还提出软件的维护措施。

 

关键字:游戏;Java;软件开发

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ABSTRACT

In recent years, Java took one kind of new programming language, by its merits and so on simplicity, probability and platform independency, obtained widely has applied, specially Java and World Wide Web’s perfect union, caused it to become the network programming and the embedded programming domain first choice programming language. JBuilder is Borland Corporation uses in developing the Java application fast a section of outstanding integrated development environment, it by its friendly merits and so on development contact surface, formidable module support, obtains general programmer’s acceptance and approves. “the gluttonous snake” the game is a classical game, it because of the simplicity of operator, the entertainment is strong, but Guang Shou welcome. This article based on the Java technology and the JBuilder development environment, developed a simplicity of operator, the contact surface to be artistic, function complete “gluttonous snake” game. The entire game procedure divides into two functional modules, six kind of modules, have realized game’s start, the suspension, the conclusion. Through this game’s development, achieves studies the Java technology and the familiar software development flow goal. this article in introduced that the Java correlation technique and in the domestic and foreign development present situation’s foundation, right “the gluttonous snake” game’s entire life cycle’s each phase of exploitation carried on introduced in detail. First, analyzed has developed this game software’s feasibility, selective analysis this design used technical feasibility. Next, from plays the main contact surface and so on several aspects, has analyzed this game’s function demand; Have analyzed the attribute demand from the workability and the secure aspect. Then, has carried on game’s preliminary design and the detailed design, this is also this article key point. The preliminary design gives two functional modules the main frame as well as six kind of module function call relations; The detailed design introduced the Java standard movement environment’s disposition, gave each kind of module with emphasis the program flow diagram as well as the UML chart, the tabulation introduced each kind contained the variable, the use method, has demonstrated game’s contact surface. In order to guarantee the procedure code the accuracy and the function realize the reliability, this article also introduced the game software’s program debugging and the function testing result, and has carried on the summary insufficient to this design’s achievement. Finally, this article also proposes software’s maintenance measure.

Key words:JAVA; Game; Software development

 

 

 

发表回复

后才能评论

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

请放心购买,购买后,联系客服 QQ群号:980780371安排远程部署运行调试程序, 如果购买调试后不合适可联系客服加钱转定制! 网站上也有运行教程,付费下载后都是程序加论文完整一套资料的

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源