Font Size: a A A

Design And Implementation Of Card Game Framework Based On Cocos2D-x

Posted on:2018-01-05Degree:MasterType:Thesis
Country:ChinaCandidate:Y L ZhangFull Text:PDF
GTID:2348330515996691Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Under the general trend of people in the pursuit of more convenient and convenient form of service,mobile games widely appear in people's life.Which card game has become the mainstream of the domestic mobile game market.In the Top 50 game chart of Apple App store of China,Card games occupy 13.The development of card games has been known as short development cycle,low cost,high risk and high profit.Those features attract many adventurers to try to open up this area.Based on the current situation of smart-phone market and card game market,this paper summarizes the mainstream open source mobile game engine.Then Author select Cocos2D-x as the game's engine due to the characteristic of the game.But author found that the game engine can not meet the needs of the game,of in the resource utilization factor,the defects in UI system and scene manager.First the author carried out a detailed study of the relevant technology,then in order to fit the development of the 2D card game.Based on the Cocos2D-x,author made a lot of improvements.The main work is as follows: 1.Optimize engine rendering module.Card game is the game with low interactive,long online time.Cocos2D-x engine is single-threaded engine,it can't take full advantage of the phone's multi-core CPU.First author analyzed the characteristics of several multi-thread rendering engine,and the game loop time synchronization method,after detailed study the original rendering module's structure.Author rewrites the current engine rendering module,separates the gameplay logic and the rendering logic with two threads.In the final,ours work improves the CPU utilization and the game performance.2.Optimize scene management module.Cocos2D-x can not meet the needs of complex card game's scene.As to this problem,author rewrites the scene module,uses the double state machine to manage the scene.In the final,ours work reduces the difficulty of game development,and optimizes the management flow of scene resources.3.Build a new version UI system.Cocos2D-x UI system has defects in screen adaptation,scalability and the development process.Author detailed studied the original engine UI system,Then rewrites the entire UI system.This new version UI system consist with configuration file management module,the core module,System-level widget,game-level widget,UI editor.This UI system is more suitable for the development of 2D card games,and greatly speeds up the development process and reduces the development difficulty.At the end of this paper,the whole engine and the UI system were tested.The author uses this framework and famous game's UI,rebuild into a mobile games.The framework provides reference for the card game development.
Keywords/Search Tags:Cocos2D-x, Computer graphic, openGL ES, multithread programming, Mobile game framework
PDF Full Text Request
Related items