摘要: 1. 首先,声明一个2个大小的sprite数组class GameScreen : public cocos2d::Layer{public: ... cocos2d::Sprite *backgroundSpriteArray[2];};2. 完成初始化,1张图片用于当前显示,另1张用... 阅读全文
posted @ 2015-08-27 17:14 Master HaKu 阅读(567) 评论(0) 推荐(1) 编辑
摘要: Scene* MainMenu::createScene(){ // 'scene' is an autorelease object auto scene = Scene::create(); // 'layer' is an autorelease object ... 阅读全文
posted @ 2015-08-27 10:49 Master HaKu 阅读(430) 评论(0) 推荐(0) 编辑
摘要: iOS:This is done using XCode project details (select the requiredorientation) Android:AndroidManifest.xml (android:screenOrientation=portrait) 阅读全文
posted @ 2015-08-27 10:11 Master HaKu 阅读(181) 评论(0) 推荐(0) 编辑