摘 要:不要打白鼠主要采用C++语言在Cocos2D-X游戏引擎下开发运行,在iOS设备上设计并实现的。该论文先对游戏进行需求分析,再实现游戏界面的功能,但在游戏功能实现中精灵间的碰撞检测和最高分数的保存,通过Cocos2D-X引擎内部提供的方法进行碰撞检测并校验检测的时间使检测效果更加精确,利用CCUserDefaul保存分数,并对数组进行遍历,获取得到最高分数,使游戏界面简洁稳定,操作简单。38551 毕业论文关键词:C++;Cocos2D-X;不要打白鼠;ios;手机游戏
Based Cocos2d-x's "Do not hit white rats" Game Development
Abstract: Do not hit white rats developed mainly in C ++ language running under Cocos2D-X game engine, designed and implemented on iOS devices. The paper needs analysis before the game, then the game to achieve functional interface, but in a save game function to realize the collision detection and the highest score in the spirit of the method provided by the Cocos2D-X engine, the collision detection and calibration of testing time make the detection more accurate results, save the scores by using CCUserDefaul, and to traverse the array, to get the highest score, the game interface is simple and stable, Simple operation.
Keywords: C++; Cocos2D-X; ios; mobile games; Do not hit white rats
目 录