没有合适的资源?快使用搜索试试~ 我知道了~
于基android贪吃蛇游戏--毕业设计.doc
0 下载量 168 浏览量
2023-06-29
13:11:54
上传
评论
收藏 398KB DOC 举报
温馨提示
试读
40页
于基android贪吃蛇游戏--毕业设计.doc
资源推荐
资源详情
资源评论
本科毕业设计(论文)
题目名称: 基于 Android 贪吃蛇游戏
学 院: 计算机科学技术
专业年级: 计算机科学与技术 08(师)级
学生姓名:
班级学号: 2 班 28 号
指导教师:
二○一二 年 六 月 六 日
摘 要
本课题是利用 java 语言在 Android 平台上进行手机游戏的开发,由于本人知识的
有限,以及客观条件的限制,本人打算开发一个单机版的游戏。本人在手机上玩过贪
吃蛇的游戏,曾经为了和别人比赛,苦苦的玩了好多次,追求高分!后来得知这个小
小的游戏是 nokia 当年很成功的一款手机游戏,许多人都玩过,也很喜欢。现在这款
游戏的版本已经发展到第三版了,手机生产厂商继续开发这个游戏,看来这个游戏还
是有很大的市场的。Google 公司 2007 年 11 月 5 日发布的开源的 Android 平台 ——
一款包括操作系统(基于 Linux 内核)、中间件和关键应用的手机平台,并组建了开
放手机联盟(Open Handset Alliance),包括 Google、中国移动、T-Mobile、宏达电、高
通、摩托罗拉等领军企业。于是,我决定利用自己大学所学的知识,自己在指导老师
的帮助下,独立开发这个小游戏。本文首先详细介绍了 java 的一些基本的知识点,
在此基础上引出了 Android,介绍了 Android 的基础以及其特点,然后介绍了一下
Android 将来的一些前景和发展。重点说明了这个贪吃蛇程序所用到的一些类和控件,
包括 Drawable,Canvas, Thread,等等。介绍了这些类的一般的使用方法,以及本程序是
如何使用这些类来进行游戏的开发的。本程序将老少皆宜的经典作品移植到手机上来
,为更流行的硬件平台提供应用软件。这些都将能很好的满足未来人们对手机游戏的
需求。吞吃蛇游戏基于 Android 平台编写,满足一般手机用户的娱乐需求。
关键词:Android 系统; 贪食蛇游戏; 手机游戏
I
Abstract
.This topic is using java language on the Android platform mobile phone game
development, I limited knowledge, and objective constraints, I intend to develop a
stand-alone game. I played the game of Snake, on the phone once in order to match with
others, struggling to play many times, the pursuit of high scores! Later learned that this
little game nokia was very successful mobile phone games, many people have played, and
also enjoyed. Version of the game has been developed to the third edition, mobile phone
manufacturers continue to develop this game, it seems that this game is a great market.
Open-source Android platform, Google's released on November 5, 2007 - an operating
system (Linux kernel), middleware and key applications-based mobile phone platform, and
the formation of the Open Handset Alliance (Open Handset Alliance), includingGoogle,
China Mobile, T-Mobile, HTC, Qualcomm, Motorola and other leading enterprisesSo, I
decided to use the knowledge learned in his college, in the instructor's help, the
independent development of this game.This article first details some of the basic java
knowledge, on this basis leads to Android, the basis of the Android and its characteristics,
and then introduces the Android future prospects and development. Highlights this Snake
procedures used and controls, including the Drawable Canvas, Thread, and so on.
Describes the general use, as well as the program is how to use these classes to the
development of the game. The ages of the classic works transplantation in this program to
the phone up, to provide application software for the more popular hardware platforms.
These will be well positioned to meet future demand for mobile games. Devour the snake
game based on the Android platform, prepared to meet the entertainment needs of the
general mobile phone users.
Key words: Android system; Gluttony snake game; Mobile game
目 录
摘 要 ................................................................................................................................I
Abstract ..............................................................................................................................II
第 1 章 绪 论................................................................................................................1
1.1 Android 简介 ............................................................................................................1
1.1.1 Android 的来源及发展 .....................................................................................1
1.1.2 Android 系统的特点 .........................................................................................2
1.2 项目目的与意义.......................................................................................................2
1.2.1 开发目的............................................................................................................2
1.2.2 开发意义............................................................................................................3
1.3 国内外现状分析.......................................................................................................3
1.3.1 国内外手机系统现状........................................................................................3
1.3.2 国内外手机应用现状........................................................................................4
1.3.3 发展趋势............................................................................................................5
第 2 章 方案论证................................................................................................................6
2.1 经济可行性分析.......................................................................................................6
2.2 技术可行性分析.......................................................................................................6
2.2.1 Android 平台特性 .............................................................................................6
2.2.2 Android 平台架构 .............................................................................................6
2.2.3 Android 应用程序组件 .....................................................................................7
2.3 本项目的开发方法.....................................................................................................9
2.4 开发工具及环境简介...............................................................................................10
2.4.1 开发工具 Eclipse 简介 ....................................................................................10
2.4.2 开发环境简介..................................................................................................10
第 3 章 需求分析..............................................................................................................11
3.1 系统开发目标.........................................................................................................11
3.2 系统需求分析.........................................................................................................11
3.2.1 业务需求分析..................................................................................................11
3.2.2 用户需求分析..................................................................................................12
3.2.3 功能需求分析..................................................................................................12
第 4 章 过程论述 .............................................................................................................13
4.1 程序流程设计.........................................................................................................13
4.2 概要设计.................................................................................................................14
4.2.1 模块划分..........................................................................................................14
4.2.2 游戏主界面模块..............................................................................................14
4.2.3 游戏控制模块..................................................................................................15
4.3 模块实现原理.........................................................................................................15
4.3.1 游戏界面模块实现..........................................................................................15
4.3.2 游戏控制模块实现..........................................................................................16
4.3.3 TileView 类的设计..........................................................................................17
4.3.4 SnakeView 类的设计 ......................................................................................17
4.4 程序主结构.............................................................................................................17
4.5 程序类图.................................................................................................................18
4.6 类的详细设计.........................................................................................................19
4.6.1 Snake 类的详细设计 .......................................................................................19
4.6.2 TileView 类的详细设计..................................................................................21
4.6.3 SnakeView 类的详细设计 ..............................................................................22
第 5 章 系统测试与结果分析..........................................................................................25
5.1 软件测试.................................................................................................................25
5.1.1 测试的基本概念..............................................................................................25
5.1.2 测试的步骤......................................................................................................25
5.2 系统测试...................................................................................................................26
5.3 测试结论...................................................................................................................27
结 论..............................................................................................................................28
致 谢..............................................................................................................................29
参考文献..............................................................................................................................30
附 录..............................................................................................................................31
剩余39页未读,继续阅读
资源评论
xinkai1688
- 粉丝: 324
- 资源: 8万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功