At present,various kinds of operating system is used in smart phones and tablet PCs including Android,iOS,Windows Phone,etc.Therefore,there is a big difference when developers to develop software that running on different operating systems,and it is difficult when transplant software from an operating system to another one.if you used cross-platform game engine to develop game,you would write code only once and easily transplant it into other platforms.Cocos2d-x is one of cross-platform game engines.A game framework based on Cocos2d-x will be introduced,and the advantage of this framework is that it is easy to be reused and itCocos2d-x can reduce the complexity of the secondary re-development.%目前,智能设备(包括智能手机,平板电脑,智能电视)使用的操作系统包括 Android,iOS,Windows Phone等,各类操作系统在开发,开发工具等方面存在很大差异,因此导致移植困难,开发周期长。跨平台的游戏引擎是只需要进行一次编写,很容易的移植进其他一些平台。文章给出了基于一种跨平台引擎--Cocos2d-x引擎的游戏的框架设计,该框架的优点在于易于重复利用,减少了二次开发的复杂性。
展开▼