01 2016 档案

摘要:1.音效引入头文件#include "simpleAudioEngine.h"命名空间using namespace CocosDenshion; 1 //创建一个背景 2 Size winSize = Director::getInstance()->getWinSize(); 3 ... 阅读全文
posted @ 2016-01-02 12:50 我要开发游戏 阅读(240) 评论(0) 推荐(0)
摘要:1 //必须 要有float类型的参数 2 void MainScene::updateFrame(float dt) 3 { 4 if (spriteTest != NULL && spriteTest->getBoundingBox().intersectsRect(sprite->g... 阅读全文
posted @ 2016-01-01 20:00 我要开发游戏 阅读(650) 评论(0) 推荐(0)
摘要:1 //创建一个精灵 2 Sprite *spriteTest = Sprite::create("1.png"); 3 spriteTest->setPosition(Point(100,100)); 4 this->addChild(spriteTest); 5 ... 阅读全文
posted @ 2016-01-01 15:51 我要开发游戏 阅读(384) 评论(0) 推荐(0)