{$cfg_webname}
主页 > 计算机 > JAVA >

基于Android平台的拼图游戏的设计与实现

来源:wenku163.com  资料编号:WK1638404 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9AWK1638404
资料介绍

基于Android平台的拼图游戏的设计与实现(含开题报告,毕业论文17900字,程序代码)
[摘  要]    智能手机作为一种兼具通讯、办公、娱乐为一体的便携式工具,已经与人们的生活紧密相连,手机游戏的植入更是人们闲暇时的最爱。基于Android平台的拼图游戏将经典的益智游戏和当前最流行的智能手机平台Android相结合,具有操作简易、图形绚丽、可玩性高等特点。本文将从Android平台的搭建开始介绍,通过对系统的分析与设计,阐述了游戏的开发过程。本系统通过采用Android平台,在实现拼图图块移动的基础之上,还可以根据个人喜好,选择图片的自定义游戏。游戏图面绚丽,音乐动听,使玩家休闲之余,体验游戏乐趣。
[关键词]    Android;智能手机;游戏;拼图
 
Design and Implementation of the Puzzle Game Based on Android
Software Engineering Major    XXX
Abstract:    As a portable tools of communication, office and entertainment, the smart phones have closely related with people's life. And the implant of phone games are also the most favourite things in their spare time. The puzzle game based on the Android platform combines the classical intellectual games with the most popular intellectual phones' platform –Android. It has characteristics of simple operation, gorgeous image and higer plaryable. The article begins with the introduction of the build of Android platform, through the analysis and design of the system, and sets forth the game's development process. By the use of the Android platform, the system is based on the realize of puzzle segments' moving which can also choose the pictures' user-defined games. The gorgeous image and beautiful music make players experience the pleasure of games during their spare time.
Key words:     Android; smart phones; game; puzzle

本课题需要重点研究的、关键的问题及解决的思路
    (1)图块移动功能:游戏进行中,通过手指触摸图块空白区域,完成周边游戏图块上,下,左,右的移动。
(2)各项游戏功能与处理:游戏界面有新游戏,菜单,静音,帮助图标,通过触摸完成各项功能。触摸新游戏可以打乱图片,开始游戏;触摸菜单可以选择图片和游戏难度;触摸静音可以消除背景音乐;触摸帮助可以显示帮助提示。
(3)个性化自定义设置功能:游戏中有自带图片和自选图片。自带图片完成游戏基本功能;自选图片遵从用户体验,可以从图库中选择自己喜爱的图片进行游戏。
(4)其他窗体:游戏主界面有休闲模式、游戏帮助、退出功能。游戏进行中有背景音乐,拼图移动、成功、失败中存在音乐特效。
主要问题:
(1)据玩家上传图片,选择难易程度的图片切割——不同的难度将图片分成不同的数组,在游戏中根据数组中的数据把图片分拆。
(2)各种逻辑判断处理和对图片素材的应用。逻辑处理体现在游戏设计即界面布局和游戏运行、游戏算法即图块移动和图片分拆与整合、触摸感应、游戏和音乐同步及拼图移动、成功、失败中存在音乐特效。图片素材应用于两部分:在游戏主界面排版休闲模式,游戏帮助,退出功能和背景图片;在游戏界面排版游戏区域,新游戏、菜单、静音、帮助图标和背景图片。

系统需求分析
本系统是基于Android平台开发的拼图游戏,将要应用在Android移动通讯设备上,能够尽可能的满足玩家闲暇时间的游戏需求[10]。本游戏在自带图片移动的基础下,增设了图库自定义选择图片模块、图片随机打乱模块、帮助模块、设置模块和背景音乐模块。从而,提高了游戏质量,丰富了游戏内容。

开发工具
操纵系统:Windows或Linux。
软件包:Android SDK(Software Development kit Java Development kit)、ADT(Android Development Tool)。
IDE环境:Eclipse IDE+ADT Eclipse3.3以上。
JDK:Java Runtime Environment虚拟机、(JDK)Java Development kit。
 

基于Android平台的拼图游戏的设计与实现
基于Android平台的拼图游戏的设计与实现
基于Android平台的拼图游戏的设计与实现


目    录
1 引言    1
1.1 开发概述    1
1.2 背景    1
1.2.1 移动应用开发产业的现状分析    2
1.2.2 Android及其市场优势    2
1.2.3 Android平台与其他平台的比较    3
1.3 课题开发内容与目标    4
2 游戏开发技术简介    4
2.1 Android系统架构    4
2.1.1 应用程序层    6
2.1.2 应用程序框架    6
2.1.3 系统运行库    7
2.1.4 Linux内核    7
2.1.5 Android应用的构成和工作机制    7
2.2 Android的API    8
2.3 Android应用程序结构解析    9
2.3.1 活动    9
2.3.2 意图接收器    10
2.3.3 服务    10
2.3.4 内容提供者    10
2.4 Android活动的生命周期    10
2.4.1 活动的生命状态    11
2.4.2 活动的运作流程    11
2.5 开发环境配置    12
2.5.1 开发工具    12
2.5.2 搭建Android 2.2开发环境    12
3 Android平台拼图游戏可行性分析    15
3.1 技术条件可行性    15
3.2 硬件条件可行性    16
3.3 市场因素可行性    16
4 Android平台拼图游戏分析与设计    17
4.1 系统需求分析    17
4.2 系统工作流程    18
4.2.1 工作流程简介    18
4.2.2 用例描述    18
4.3 功能模块系统设计    21
4.3.1 图块移动    21
4.3.2 载入图片    21
4.3.3 游戏设置    21
4.3.4 游戏特效    21
4.3.5 拼图算法    21
4.3.6 游戏帮助    21
5 Android拼图游戏系统实现及测试    22
5.1 功能模块的实现    22
5.1.1 游戏界面    22
5.1.2 分割模块    23
5.1.3 移动模块    24
5.1.4 背景音乐    25
5.1.5 玩家自选图片    25
5.2 开发过程中遇到的问题和解决办法    25
5.3 运行与测试    25
5.3.1 Android应用开发的测试技术    25
5.3.2 测试的任务    26
5.3.3 测试方案与过程    26
5.3.4 测试结果    26
结束语    28
参考文献    29
致谢    30

推荐资料