Font Size: a A A

The Design Of Mobile Online Game Template Based On Cocos2d-x Engine

Posted on:2016-05-01Degree:MasterType:Thesis
Country:ChinaCandidate:J C HeFull Text:PDF
GTID:2308330461954777Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
ESA(Entertainment Software Association of United States)has reported a thesis in June2011, which analyzes the situation of game business in America. From the data, we can see that more and more people take a positive attitude to games, and in all the game platforms, mobile phone games are the most popular one. According to 2011-2015 Chinese mobile phone games investment analysis and future research published by Boshi research center, the number of users of China Mobile and China Unicom has been more than 7 million since 2010 spring. As an important application character, the mobile phone game is developing rapidly as expected, and as one of the major game platforms, it has some special advantages. The study on mobile phone game development and technology helps us keep our comprehensive strength level in business, and it should be considered to be a very important strategic significance job.The design of this game is derived from a multiplatform mobile game project of Chengdu XX Co. Ltd, and the developing purpose of the project is to develop an emigrated game with multi-scene. There are many heroes for choosing, and all of those heroes can be upgraded. Each hero has both active skills and passive skills, and even some special damage skills. Additionally, the achievement system and the friendly system are available. According to the design of the application, it contains those scenes, such as version updating scene, landing scene, NPC scene, fighting scene, pre-PVP scene, PVP fighting scene. Similarly, it contains those systems, such as landing system, activity system, daily system, mall system, hero system, bag system and so on.According to the situation of mobile games market, and the widely use of mobile game engines, this paper propose san aright developing method. In order to develop project on Android and iOS, as an open source mobile games engine, Cocos2d-x is used here.Cocos2d-x is an open source game engine under MIT license. It can be used to build games, apps and other cross platform GUI based on interactive programs.Cocos2d-x allows developers to exploit their existing C++, Lua and Javascript knowledge for cross-platform deployment into iOS, Android, Windows Phone, Mac OS X, Windows Desktop and Linux, which saves time, efforts and also has low cost. Cocos2d-x has some powerful features, such as fast, easy to be used and loaded. Recently, Cocos2d-x has been widely used by individuals and enthusiasts as well as big companies, especially in China, South Korea and Japan. Engineers from Chukong, Google, Microsoft, ARM, Intel and Black Berry are actively engaged in Cocos2d-x community. Big guys, including Zynga, IGG, Big Fish Games and Disney Mobile, have been chosen Cocos2d-x to develop their games. Based on the game framework of Cocos2d-x, the author and his company develop a game developing framework, which is suit for the project. In the bottom of the game developing framework, they choose the Cocos2d-x engine and other underlying libraries. And in the top of the framework, there are several modules being combined to achieve system functions. With the popularity of portable devices, such as mobile phones and tablets, playing mobile phone games has gradually been one of indispensable leisure entertainments. Based on open source game engine Cocos2d-x and Boost libraries, and taken the Chinese mythology as background, the author and his company design the multi-user interactive online mobile game.During the developing of the project, the author and his company improve some important modules of the game, such as the collision detection module, the artificial intelligence module, and the resource management module. To achieve the collision detection, the author and his company use space subdivision algorithm. To achieve the artificial intelligence module, they choose the Finite State Machine. To decrease the use of memory space of the mobile device, they use software named Texture Packer to unpack the image resources. The author and his company separate the resources of each scene and each hero, so they can add scene and hero in the latter versions easily.According to market research, this game project takes the Chinese mythology as the background to design a tower defense strategy game to accomplish the toll-gate. The game client is based on game engine Cocos2d-x, uses grid detection as collision detection, uses the open source Boost libraries to develop multithreaded server and connect the MySQL database, uses TCP/IP protocol to achieve the client and server communication, uses AES, XXTEA algorithm for data encryption and decryption at the same time, and finally accomplishes the game project on server and client development.Through the developing of the project, the game based on Android and i OS is achieved successfully. There are 10 scenes, and each scene has 15 points. The style of the map in each scene is different, which makes the visual effects of the game more colorful. There are 30 kinds of heroes to be chosen, and with a total of 30 different attacked skills, the game is more interesting. During the game, players can achieve a number of achievements, and they can get a chance to draw lotteries when perfect clearance. There is a Boss in each scene, which makes the game more playability and more challenging.Through testing the app on several android devices and IOS devices, the result meets the demand of the project design, and it has been released to the App Store and several android platforms in China. It completes the functional requirements and non-functional requirements, and is popular in game players. This design completes proposing game project, doing market research and putting forward to technical solution. And it finishes the game software developing and testing, and releases to be in operation. This project advances a complete solution for the design and the implementation of the mobile phone online games, and the solution will be a reference for similar applying.
Keywords/Search Tags:Cocos2d-x, Mobile Game, Collision Detection
PDF Full Text Request
Related items