没有合适的资源?快使用搜索试试~ 我知道了~
java版贪吃蛇游戏.doc
0 下载量 58 浏览量
2023-07-07
16:03:09
上传
评论
收藏 354KB DOC 举报
温馨提示
试读
54页
java版贪吃蛇游戏.doc
资源推荐
资源详情
资源评论
毕业设计(论文)
题目:JAVA 版贪吃蛇游戏
学 生 姓 名
学 号 201022030219
班 级 计算机 102202H
所属院(系) 计算机科学与技术
指 导 教 师
2014 年 5 月 20 日
I
JAVA 版贪吃蛇游戏
摘 要
Java作为一种热门的编程语言,以其简单性、可移植性和平台无关性等优点,得到了广
泛地应用,特别是Java与万维网的完美结合,使其成为网络编程和嵌入式编程领域的首选
编程语言。MyEclipse是Borland公司用于快速开发Java应用的一款优秀的集成开发环境,它
以其友好的开发界面、强大的组件支持等优点,得到广大程序员的接受和认可。“贪吃蛇”
游戏是一个经典的游戏,它因操作简单、娱乐性强而广受欢迎。本文基于Java技术和
MyEclipse 6.0开发环境,开发了一个操作简单、界面美观、功能较齐全的“贪吃蛇”游戏。
整个游戏程序分为二个功能模块,六个类模块,实现了游戏的开始、暂停、结束。通过本
游戏的开发,达到学习Java技术和熟悉软件开发流程的目的。本游戏开发采用的技术和方
法,对目前游戏类软件开发有一定的指导意义。
关键词:Java,贪吃蛇,游戏设计
II
Using Java technology to achieve the Snake game
Abstract
Java is a hot programming language,with its simplicity, portability and platform
independence and other advantages, has been widely used, especially the Java and the world
wide web is the perfect combination, make its become network programming and the field of
embedded programming preferred programming language. MyEclipse Borland is the company
for the rapid development of Java applications an excellent integrated development environment,
with its friendly interface, powerful component support and other advantages, by the majority of
programmers acceptance and recognition. " Snake" game is a classic game, because it has the
advantages of simple operation, strong entertainment and popular. In this paper, based on the
Java technology and MyEclipse 6 development environment, development of a simple, beautiful
interface, complete function of the" snake" game. The game is divided into two function module,
six modules, realization of the game start, pause, end. Through the game's development, achieve
the study of Java technology and familiar with software development process purpose. The game
development using the technology and method, the game software development has certain
guiding significance.
Key words: Java ,Snake,design
III
目
录
摘 要 ..............................................................................................................................................I
关键词 ..............................................................................................................................................I
Abstract..........................................................................................................................................Ⅱ
Key words ......................................................................................................................................Ⅱ
第 1 章、前言 .................................................................................................................................1
1.1 开发工具 ...........................................................................................................................1
1.2 方案论证 ...........................................................................................................................2
1.2.1 VB 的优点................................................................................................................2
1.2.2 C++的优点 ...............................................................................................................2
1.2.3 Java 的优点 ..............................................................................................................3
1.3 需求分析 ...........................................................................................................................4
1.4 可行性分析 .......................................................................................................................4
1.5 应用环境 ...........................................................................................................................5
第 2 章、本论 .................................................................................................................................6
2.1 设计运用技术简介 ...........................................................................................................6
2.1.1 Oop(面相对象编程技术)....................................................................................6
2.1.2 Swing 技术 ..............................................................................................................7
2.1.3 swt 技术....................................................................................................................8
2.1.4 Applet 技术...............................................................................................................8
2.2 设计方案论证 ....................................................................................................................9
2.2.1 设计思路 ..................................................................................................................9
2.2.2 程序概述 ..................................................................................................................9
2.2.3 程序流程图 ............................................................................................................10
2.2.4 总设计模块的划分 ................................................................................................11
IV
2.2.5 类、方法、属性说明 ............................................................................................12
2.3 程序设计 ..........................................................................................................................13
2.3.1 界面设计 ...............................................................................................................13
2.3.2 蛇体设计 ...............................................................................................................14
2.3.3 设置菜单及相关按钮的实现 ...............................................................................14
2.3.4 按键监听功能实现 ...............................................................................................15
2.3.5 游戏速度设置 .......................................................................................................16
2.3.6 判定贪吃蛇游戏是否结束 ...................................................................................16
2.3.7 各功能界面截图及操作说明 ................................................................................18
2.3.8 游戏操作界面 .......................................................................................................21
第 3 章、结论 ...............................................................................................................................26
3.1 测试的目的 ......................................................................................................................26
3.2 软件测试 ..........................................................................................................................26
3.2.1 测试的基本概念 ...................................................................................................26
3.2.2 测试的基本步骤 ...................................................................................................27
3.3 本程序测试 .....................................................................................................................28
参 考 文 献 .................................................................................................................................29
致谢 ...............................................................................................................................................30
附录 ...............................................................................................................................................31
附录Ⅰ: ................................................................................................................................31
附录Ⅱ: ................................................................................................................................40
剩余53页未读,继续阅读
资源评论
xinkai1688
- 粉丝: 323
- 资源: 8万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 235486247769308自带键盘安卓海贼.apk
- 672536945416276wap.stuzn.com_1000_1137350andme_signed.apk
- 737836185360652wap.stuzn.com_1000_1642030hzw_n73d.apk
- JavaWeb阶段综合项目的接口文档
- 003 登录rsa+token 登录rsa+token(需改善 私钥不应该硬编码在类中、密码应该存储为哈希值)
- 992475461755466幼稚园春游功能版.apk
- spark编程基础实验三数据
- windows之mysql8+的配置文件my.ini
- cglib完美支持java17及以上
- PicGo+Typora+Github
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功