毕业设计论文——最终版 下载本文

内容发布更新时间 : 2024/5/29 5:46:56星期一 下面是文章的全部内容请认真阅读。

毕业设计论文

作者 学号 系部 专业 题目

指导教师

评阅教师 完成时间:

毕业设计(论文)中文摘要

(题目):基于Java的游戏设计——贪吃蛇 摘要:“贪吃蛇”游戏是使用Java语言开发的一款经典的游戏,它因操作简单、娱乐性强而广受欢迎。本文基于Java技术和eclipse开发环境,开发了一个操作简单、界面美观、功能较齐全的“贪吃蛇”游戏。整个游戏程序分为十个类模块,实现了游戏的开始、暂停、结束,能够实现加速和减速。通过本游戏的开发,达到学习Java技术和熟悉软件开发流程的目的。 本文在介绍Java相关技术时对“贪吃蛇”游戏的整个生命周期的各个开发阶段进行了详细地介绍。首先,分析了开发本游戏软件的可行性;其次,从游戏主界面等几方面,分析了本游戏的功能需求;然后,进行了游戏的概要设计和详细设计,这也是本文的重点。概要设计给出两个功能模块的主框架以及八个类模块的函数调用关系;详细设计重点给出各个类模块的程序列表,介绍了各个类包含的变量、使用的方法,展示了游戏的界面。 为了保证程序代码的正确性和功能实现的可靠性,本文还介绍了游戏软件的程序调试过程和功能测试结果。 关键词:Java eclipse 贪吃蛇 开发流程

毕业设计(论文)外文摘要

Title : Java-based game design ——Snake Abstract: Snake game is a classic game using the Java language development,it is simple, entertaining and popular. This article is based on Java technology and the Eclipse development environment, developing a simple, beautiful interface, Full-featured \the start of the game, pause, end ,being able to achieve speed up and speed down . Through the development of the game, to achieve the purpose of learning Java technology and familiar with the software development process. Introducing Java-related technologies, a detailed description of the various development phases of the entire life cycle of the \game. First, the analysis of the feasibility of the development of the game software; Secondly, the game from the main game interface aspects, functional requirements; Then, the outline design and detailed design of the game, which is the focus of this article. Outline design gives the main frame of the two functional modules and The eight modules function call relationship; Detailed design focusing of each module is given the list of programs, each class contains variables, the methods used, showing the game's interface . In order to ensure the correctness and functions achieving reliability of the program code, the article also describes the results of the game software debugging process and functional testing. keywords:Java eclipse Snake the development process

目录

1 绪论 .............................................................. 1 1.1 JAVA语言的特点 ................................................ 1 1.2 开发工具ECLIPSE介绍 ........................................... 2 1.3开发工具JDK介绍 .............................................. 2 1.4 应用环境 ...................................................... 3 2 系统需求分析 ...................................................... 3 2.1 需求分析 ...................................................... 3 2.2 可行性分析 .................................................... 3 3 系统概要设计 ...................................................... 4 3.1 游戏流程图 .................................................... 4 3.2 设计目标 ...................................................... 5 3.3 系统功能模块 .................................................. 5 3.4 系统数据结构设计 .............................................. 7 4 系统详细设计 ..................................................... 10 4.1 程序设计 ..................................................... 10 4.2 贪吃蛇游戏各功能界面截图 ..................................... 13 5 系统测试 ......................................................... 16 5.1 测试的意义 ................................................... 16 5.2 测试过程 ..................................................... 16 5.3 测试结果 ..................................................... 17 结论 ............................................................... 18 致谢 ............................................................... 19 参考文献 ........................................................... 19

I

1 绪论

贪吃蛇是世界知名的益智类小游戏,选择这个题目一方面是为了将我们自己的所学知识加以运用;另一方面,我希望通过自己的所学知识把它剖析开来,通过自己的动手实践,真正的了解它的本质和精髓。希望通过这次实践,能从中提高自己的编程能力。并从中学会从零开始分析设计程序,达到学以致用,活学活用的目的。另外,通过本游戏的开发,达到学习Java技术和熟悉软件开发流程的目的。

本游戏的开发语言为Java,开发工具选用Eclipse。 Java是一种简单的,面向对象的,分布式的,解释型的,健壮安全的,结构中立的,可移植的,性能优异、多线程的动态语言。这里采用Java作为开发语言主要是基于Java的面向对象和可移植性。 Eclipse 是一个开放源代码的、基于 Java 的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。

1.1 Java语言的特点

1.1.1 简单性

Java与C++语言非常相近,但Java比C++简单,它抛弃了C++中的一些不是绝对必要的功能,如头文件、预处理文件、指针、结构、运算符重载、多重继承以及自动强迫同型。Java实现了自动的垃圾收集,简化了内存管理的工作。 1.1.2 平台无关性

Java引进虚拟机原理,并运行于虚拟机,实现不同平台之间的Java接口。Java的数据类型与机器无关。 1.1.3 安全性

Java的编程类似C++,但舍弃了C++的指针对存储器地址的直接操作,程序运行时,内存由操作系统分配,这样可以避免病毒通过指针入侵系统。它提供了安全管理器,防止程序的非法访问。 1.1.4 面向对象

Java吸收了C++面向对象的概念,将数据封装于类中,实现了程序的简洁性和便于维护性,使程序代码可以只需一次编译就可反复利用。

1