当前位置:首页 > 基于Android贪吃蛇游戏 - 本科毕业设计(论文)
本科毕业设计(论文)
题目名称: 基于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
II
目 录
摘 要 ................................................................................................................................ I Abstract .............................................................................................................................. II 第1章 绪 论 ............................................................................................................... 1 1.1 Android简介 ............................................................................................................ 1 1.1.1 Android的来源及发展 ..................................................................................... 1 1.1.2 Android系统的特点 ......................................................................................... 2 1.2 项目目的与意义 ...................................................................................................... 3 1.2.1 开发目的 ........................................................................................................... 3 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章 过程论述 ............................................................................. 错误!未定义书签。 4.1 程序流程设计 ........................................................................................................ 13 4.2 概要设计 ................................................................................................................ 14 4.2.1 模块划分 ......................................................................................................... 14 4.2.2 游戏主界面模块 ............................................................................................. 14 4.2.3 游戏控制模块 ................................................................................................. 15 4.3 模块实现原理 ........................................................................................................ 15
共分享92篇相关文档