Font Size: a A A

The Design And Implemention Of Mobile Game Tank Battle Based On Cocos2d-x

Posted on:2014-09-21Degree:MasterType:Thesis
Country:ChinaCandidate:Z H XiaFull Text:PDF
GTID:2268330422451998Subject:Software engineering
Abstract/Summary:PDF Full Text Request
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.
Keywords/Search Tags:Mobile game, Cocos2d-x, Collision Detection, Artificial Intelligence
PDF Full Text Request
Related items