The Design and Implemention of Mobile Game Tank Battle Based on Cocos2d-x

Author
XiaZhiHai
Advisor
LiZuo , HeLiang
School
Harbin Institute of Technology
Major
Software Engineering
Classification
TP317 Procedures package ( application software )
Degree
Master's thesis
Year
2013
Downloads
1
Citations
0

Request the full text

Abstract

Tank Battle is a cross-platform mobile game proposed by Beijing XuanHuo Co.,Ltd. The development purpose of the project is to develop a emigrated game withmulti-scene. There are many tank for choose, and all of those tank can upgrade.Each tank has some active skills and passive skills, and some special missile.Additionally, the achievement system and lottery system are available.According to the mobile game market situation and the mobile game engineswidely used, this paper proposed a right development method. An open sourcemobile game engine Cocos2d-x was used to develop the project on Android and iOS.Based on the game framework of Cocos2d-x, we develop a game developframework suit for our project. In the bottom of the game develop framework, weuse the Cocos2d-x engine, the SQLite database engine, and other underlying library.In the top of the framework, there are several modules combined to achieve systemfunctions. The core modules include the interface management module, data module,map module, collision detection module, artificial intelligence module,cross-platform module, encryption module, audio module.During the development of the project, we improved some important modulesof the game, such as the collision detection module, the artificial intelligencemodule, the resource management module. We use space subdivision algorithm toachieve the collision detection. Use Finite State Machine and an A~*algorithm toachieve the artificial intelligence module. To decrease the use of memory space ofthe mobile device, we use software named TexturePacker to unpack the imageresources. We separate the resources of each scene and each tank, so we can addscene and tank in the later versions easily.Through the development of the project, the Tank Battle game based onAndroid and iOS was achieved successfully. There are5scenes, each scene has15points. The style of the map in each scene is different, which can make the visualeffects of the game more rich. There are10kinds of tank to choose, with a total of28different skills and special missiles, make the game more interesting. During thegame, player can achieve more than30achievements and can get chance to lotterywhen perfect clearance. There is a Boss in each scene, make the game moreplayability and challenging. After the testing of the game, it completes thefunctional requirements and non-functional requirements. The game has beensubmitted to the market, and the reviews of client are very well.

Table of contents

Summary 4-5 Abstract 5-9 Chapter 1 Introduction origin and significance of 9-16 1.1 topics 9 1.2 industry development Status and issues related 9-14 1.2.1 smartphone operating system market analysis 9-11 1.2.2 Status Mobile Game development 11 1.2.3 mainstream mobile game engine 11-13 1.2.4 Mobile FPS game developed key technology 13-14 the main content of 1.3 papers 14-16 Chapter 2 project requirements and key technical analysis 16-22 2.1 project needs analysis 16-18 2.1.1 project basic functional requirements 16-18 2.1.2 non- functional requirements 18 2.2 key technical analysis 18-21 <br / > 2.2.1 Cocos2d-x game framework 18-20 2.2.2 Cocos2d-x game engine features 20-21 2.3 Summary 21-22 Chapter 3 system Design 22-38 3.1 games overall design 22-24 3.1.1 game's main interface 22-23 3.1.2 game system architecture 23-24 3.2 system features modular design 24-37 3.2.1 data Management module design 24 -28 3.2.2 logic processing module design 28 3.2.3 game map design 28-29 3.2.4 images and animations management module 29-31 3.2.5 collision detection module design 31-32 3.2.6 AI module design 32-35 3.2.7 cross-platform management module design 35-36 3.2.8 data and pictures encryption module 36-37 design nbsp 3.2.9 other extension modules ; 37 3.3 Summary 37-38 Chapter 4 system implementation 38-62 4.1 game map module 38-40 4.2 pictures and animated module 40-41 4.3 collision detection module 41-45 4.3.1 players tanks collision detection 41-43 4.3.2 enemy tanks collision detection 43-45 4.4 AI module 45-52 4.4.1 AI enemy tanks 45-48 <br / > 4.4.2 enemy outpost AI 48-49 4.4.3 game a * pathfinding algorithm 49-52 4.5 platform management module 52 4.6 encryption module for data and pictures 52-53 other expansion modules to achieve 4.7 53-55 4.8 interface running game 55-61 4.8.1 menu interface 55-56 4.8.2 mall interface 56-57 4.8.3 scenes and checkpoints choice interface 57-59 4.8.4 main game interface 59 4.8.5 score draw interface 59-60 4.8.6 game achievements interface 60-61 4.9 Summary 61-62 Chapter 5 game test 62-65 5.1 test equipment 62 5.2 unit testing 62-63 5.3 performance test 63-64 5.4 Summary 64-65 conclusion 65-66 References 66-70 Thanks 70-71 CVs 71

Related dissertations

  1. Design and implementation of mobile phone games based on J2ME
  2. The Design and Realization of Mobile Game Based on Android Platform
  3. Research on Key Technology of Collision Detection in Virtual Reality
    WangDai ·Jilin University ·2009 ·Doctoral dissertation
  4. The Research and Realization of 3D Graphics Engine on Mobile Phone.
    WuHaiBin ·Hohai University ·2006 ·Master's thesis
  5. 3D mobile game engine framework and key technologies to achieve
  6. Design and Implementation of mobile game based on J2ME platform
  7. To investigate the China Mobile mobile phone game base marketing strategy
    LiGuangLei ·Nanjing University ·2012 ·Master's thesis
  8. An Analysis of Communication Technology Developments from The Communication Model and the Capabilities of the iPad
    TianShi(Angel Ortiz) ·Nanjing University ·2012 ·Master's thesis
  9. Study on Method of Dual-Robot Coordination
    OuYangFan ·South China University of Technology ·2013 ·Doctoral dissertation
  10. The Research on Uncertainty of Artificial Intelligence
  11. Security Interaction Strategy of RBAC Based on Reconcile Domain
    DaiJia ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Optical Capture Based Development of Virtual Interaction System
    ZhouXiaoYang ·Harbin Institute of Technology ·2012 ·Master's thesis
  13. A Professional Technology Institute Virtual Design and Realization of the System
  14. Research and Develop on the Simulating System for Binocular Stereo Measurement
  15. Research on Model and Roam Technology of3D Scene Based on WEB
    HeYingYing ·Harbin Engineering University ·2013 ·Master's thesis
  16. Motion Simulation of Guide Wire in Virtual Intravascular
    JieChengKai ·Beijing University of Technology ·2013 ·Master's thesis
  17. Natural Landscape Simulation Research Based on Particle System
  18. The Research of Path Planning and Collision Detection Method in Virtual Battlefield
    LiTeng ·Nanchang University of Aeronautics and ·2013 ·Master's thesis
  19. Design and Implementation of Virtual Campus Roaming System
  20. Design and Realization of Virtual3D Scene Roaming System