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

基于安卓Android的2D物理引擎游戏-魔法跳跳球的设计

来源:56doc.com  资料编号:5D20528 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9A5D20528
资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 帮助
资料介绍

基于安卓Android的2D物理引擎游戏-魔法跳跳球的设计(任务书,开题报告,论文14000字,程序代码)
摘 要
随着Android的发展,Android手游也越来越受欢迎,本文是利用JBox2D物理引擎和OpenGL 3D渲染技术来实现的一个Android游戏的设计。一般在Android中对物理世界使用JBox2D物理引擎,对游戏的渲染特别是3D效果是使用OpenGL技术。
论文首先概述了JBox2D物理引擎和OpenGL 3D渲染这两项技术,然后在系统设计中给出其详细应用。在本次游戏的设计中,将系统整体分成三个模块,表示层模块、物理引擎模块、工具辅助模块,然后再分别展开描述。本次设计的目的是在游戏设计的过程中加强对Android知识的理解和应用,了解JBox2D物理引擎和OpenGL技术在Android开发中的应用,并且了解一些测试方面的知识以便找到错误并加以改正。
论文作者完成了一个基于Android的2D物理引擎游戏——魔法跳跳球的设计与实现,本系统运行流畅,功能完整,对同类Android游戏的开发具有一定的参考意义。
关键词:JBox2D物理引擎;OpenGL 3D渲染;安卓;手游
 
Abstract
With the development of Android, Mobile Games in Android platform are more and more popular. In this article, I design an Android game which uses the JBox2D physics engine and OpenGL 3D rendering technology. We utilize the JBox2D physics engine to simulate the real world and use the OpenGL 3D technology to render the scene in the game.
Firstly, the thesis introduces two technologies -- the JBox2D physics engine and OpenGL 3D. Then the thesis shows the detail of the application of the two technologies in system design.  I divide the system into three modules, the presentation layer module, the physical engine module, the tool auxiliary module. Then I will show the detail of the three modules. The purpose of this design is to strengthen my understanding and application of knowledge of Android, understand jbox2d physics engine and OpenGL technology in developing Android applications, and understand the knowledge of Software Testing. Learning how to test makes it possible to find mistakes in programming or design, and help us to fix them.
The author of this thesis has completed a game based on Android 2D engine which named “Magic Ball”. The system of this game has complete function and running smoothly. This thesis can be used as a reference in the development of a similar Android game in some situation.
Key Words:JBox2D; OpenGL 3D; Android; Mobile Game
需求分析
要将此游戏挪到Android平台上,在设计过程中有些功能需要修改使其适应开发。代币用分数和小球个数代替,街机是投币的,这个在手机上就用分数表示,在街机上是投多少币玩多久,在手机上则用时间和小球数量决定游戏何时结束,连线成功可以得到分数。而触碰LUCKY放烟花。抽奖则是增加可用小球数,三位数全部相同加10个小球,两位相同加5个小球。小球进入迷之盒可能会增加一个小球。在小球用完或者时间结束时游戏结束。连线成功后可选择继续挑战,也可选择得到分数,继续游戏以得到更高的分数。
本次设计大致就是实现上述功能,应用会有暂停、重新开始游戏等功能。本次设计对界面的渲染使用OpenGL3D技术,而对物理世界的模拟使用JBox2D物理引擎系统来控制物体的运动与碰撞效果。
 

基于安卓Android的2D物理引擎游戏-魔法跳跳球的设计
基于安卓Android的2D物理引擎游戏-魔法跳跳球的设计
基于安卓Android的2D物理引擎游戏-魔法跳跳球的设计


目 录
摘 要    I
Abstract    II
第1章 绪论    1
1.1 研究背景及意义    1
1.2 国内外研究现状    1
1.3 研究基本内容和目标    2
第2章 相关技术介绍    3
2.1 物理引擎    3
2.1.1 JBox2D物理引擎简介    3
2.1.2 JBox2D物理引擎作用    3
2.1.3 JBox2D物理引擎系统在本设计中的应用    4
2.2 OpenGL    4
2.2.1 定义    4
2.2.2 作用    4
2.2.3 OpenGL在本设计中的应用    4
2.3    Android开发平台—Eclipse    4
第3章 系统总体设计    6
3.1 需求分析    6
3.2 总体框架    6
第4章 系统详细设计    9
4.1 主控制类    9
4.2 主界面相关类    10
4.3 游戏界面相关类    10
4.4 刚体类    12
4.5 辅助工具类    14
第5章 系统设计结果    15
5.1 系统设计效果    15
5.2 游戏测试方法    18
第6章 结论    21
参考文献    22
致 谢    23

推荐资料