Font Size: a A A

Design And Implementation Of MVC Framework On Cocos2d-X Engine

Posted on:2014-02-13Degree:MasterType:Thesis
Country:ChinaCandidate:F L ZhouFull Text:PDF
GTID:2268330422963253Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
With the rapid development of Smartphones, panel computers and other terminalequipments and TD-LTE (4G), expected in the near future, the number of mobile userswill exceed the number of PC users. However the major terminal equipmentmanufacturers use a variety of mobile operating systems result in mobile applications andgame development costs greatly, while the improvement of application’s platformcompatibility, adaptability have already become the important factors of the mobileapplication and game development. So the game engines for cross-platform developmenthave been created to deal with the problem. Applications developed by the cross-platformgame engines can be used in the development processes of same type games veryconveniently, at the same time these applications have a good cross-platformperformance, greatly shortened game development cycle because of the improvement ofgame development efficiency. Cocos2d-X is the currently used more widely, the bestcross-platform performance open source mobile game development engine. Cocos2d-X’soriginal "director-scene-view-sprite" structure is too simple and easy for developersto understand and use but can not handle more complex game model, not to facilitate thedivision of labor in the actual development process, and moreover those applicationsdeveloped by Cocos2d-X would be hard to upgrade and maintain.An MVC (Model-View-Controller) game development framework for theCocos2d-X platform have been designed and implemented in this paper, based on thefunction of each module in the engine, and the use of the type of object-oriented divisionand divided into logical calculation (model), data display (view) and interactive control(controller) three modules. These three modules are relatively independent, andcommunicate with Proxy Pattern. Especially logical calculation module, based onabstract and unified internal logic calculations similar games like board games, ball games, shooting games and so on will again be divided into the Game CharacterManagement Model, the Game Character Model, the Game Map Model and theComputing of the Relationship between Roles, which allows developers to analyze thefunctional requirements of applications in the actual development process rapidly andapply the existing model directly. It makes the application developers can efficientlydevelop applications on the Cocos2d-X platform, greatly reduce the development andmaintenance of the difficulty, reduce development time and cost, and also enhance thereusability and extensibility of games and applications.
Keywords/Search Tags:Cocos2d-X, MVC, Game engine, iOS, Android, Design pattern
PDF Full Text Request
Related items