| With the popularity of4G and rapid development of the mobile network, Mobile games get explosive growth and subscribers increased by62.3%over2013in2014. There are504million subscribers of Mobile online games. In the face of such a huge market demand,Developer need to think about how to develop mobile game with an efficient system framework In order to improve development efficiency.Cocos2d-x is an excellent game engine in order to improve the efficiency of game development,But the engine is still exist many problems,such as huble UI systemã€complex system logicã€serious coupling events system and does not provide an efficient framework to develop game. In view of this, an quick game development framework for Cocos2d-x platform hava been Designed and implementated in this paper,there are seven sytem modules in the framework,UI sytemã€logical system event system network system audio system logging system and database system.UI system implementated a general UI library based on configuration fileã€Logical system to realize the management system and the Lua script packageã€Event system Based on the event-driven model and lua script implementationã€Network system encapsulate Scoket and Http interface for lua scriptã€Audio system extension using FFmod audioã€Logging system classificationã€dynamic configuration〠Database provides a unified data interface operation.The paper designs an event processing system, based on message publish/subscribe model of event driven architecture and the script technology. By using script technology, the system dynamics got greatly improved. An efficient game development framework for Cocos2d-x platform have been designed and implemented in this paper, this framework provide a general UI system instead of Cocos2d-x’s UI system,introduce technology of script to slove the problem of the system logic is not clear and provide a event process system based on event driven architecture. Through the use of this framework developers can efficiently develop game on the Cocos2d-X platform, reduce development time and cost, and also enhance thereusability and extensibility of games and applications. |