1、 上海电力学院 本科毕业设计(论文) 题 目: 基于 Android 的 推箱子游戏 的 设计 院 系: 计算机与信息工程学院 专业年级: 2008 电子科学与技术 学生姓名: 黎浩宏 学号: 20082649 指导教师: 金一鸣 2012 年 06 月 14 日 基于 Android 的 推箱子游戏 的 设计 摘 要 随着智能手机一步步走进普通人的生活,它将成为人们获取信息的主要设备。因此,手机的娱乐应用服务将会有很大的发展空间,游戏也是其中之一。 本系统主要是实现基于 Android 的推箱子游戏,推箱子是一款来自日本的古老游戏,其设计目的是训练人的逻辑思维能力。游戏场景一般是设定在空间狭
2、小的仓库中,要求把箱子摆放到指定位置。这就要求玩家巧妙的运用有限的空间和通道,合理的安排箱子的位置和移动次序才可能完成任务。随着计算机游戏的发展,很多编程爱好者基于该游戏的思想开发出了各种版本、各种类型的 推箱子。这其中也包括很多手机版本的实现,伴随着 Android SDK 技术的不断发展,一些基于 Android 应用也不断推陈出新,很快推箱子游戏便进入了千家万户。 此 Android 推箱子游戏是基于 Android SDK2.1 基础上设计的,主要分为开始游戏、声音开关、游戏说明、退出游戏四个功能模块的设计与实现。 本文 首先 论述了 android 系统的背景和研究现状,接着简要的介
3、绍了 android 的技术及对 android分析,并且介绍了 android 应用程序的结构。在程序开发中,采用了先设计好游戏的类框架,然后按照各个类 的实现进行代码的编写 与 实现功能。 关键词 : android 推箱子游戏 ,android SDK,智能手机 II THE DESIGN OF THE PUSHBOX SYSTEM BASED ON ANDROID ABSTRACT Nowadays, smartphone is stepping into the lives of ordinary people,it will became the mainly device of
4、getting information.so , mobile phone entertainment application service will have large development space,game is one of the service .This system mainly is to realize the pushed box game based on Android ,Pushed box is a section from Japans oldest game and designed to train people logical thinking a
5、bility. Game scene generally are set in the narrow space warehouse, and demanded the box is put to the appointed place. This requires player clever use limited space and channel, reasonable arrangement of the box location and movement order just may complete the task. Along with the computer game de
6、velopment, many lovers of programming based on this game ideas developed out various versions, various types of pushed box. They include a lot of mobile phones version of the realization, accompanied by Android SDK technology unceasing development, some based on Android applications are constantly,
7、quickly pushed box game entered innumberable families.This Android PushBox Game is based on the Android SDK2.1.the main points of the design,start game,sound switch,game description and exit game.While developing the process, i design the framework of the game, This paper first discusses the backgro
8、und and present research situation of Android system. And then briefly introduces the Android technology and the Android analysis, and introduces the Android Application structure.Then I begin to code compilation and realize the function of the game according to each class implementation. Key words: Android pushedbox game,android SDK.smartphone