-
cocos2d-x 101次相遇 / 目錄
1 安裝和環境搭建 -xcode
2 Scenes , Director, Layers, Sprites
3 建立圖片菜單
4 在HelloWorld上--建立新場景
5 增加一個精靈sprite
5.1 縮小sprite並使之完整顯示
6 action ,移動sprite
7 3.0 的點擊事件,CCTouchDelegate已經停用了
8 使用觸摸事件移動 精靈
-
auto s =Sprite::create("19300001150142129966113771140.jpg");
-
-
this->addChild(s,1);
-
// do something
-
returntrue;
-
auto s =Sprite::create("19300001150142129966113771140.jpg");
-
-
CCSize size=CCDirector::sharedDirector()->getWinSize();
-
s->setPosition(ccp(size.width/2,size.height/2));
-
s->setScale(0.3,0.3);
-
this->addChild(s,1);
-
// do something
-
returntrue;
-
}