2012-10-11から1日間の記事一覧
・パート3 https://github.com/clawoo/TileBasedGamePart3Cocos2D-xGameOverScene.hとGameOverScene.cppがない! CC_SYNTHESIZEはインスタンス変数の定義だと思う。cocos2dでいうCCLabelはCCLabelTTF? USING_NS_CC; これを上に書けばCCSceneだけでいける。 ※…
メソッドのオーバーライドしてないのか、記号でなくメソッドで行わないといけない。 ベクトル同士の計算っぽい感じなのに ccpAdd・・・ + ccpSub・・・ - ccpMult・・・ / ccpDot・・・ *cocos2dだが、ここ見ればいい http://www.cocos2d-iphone.org/api-ref…
https://github.com/defunkt/gist
CCSprite::spriteWithFile("Player.png"); ↓これ。非推奨なのはほぼcreateかな? _player = CCSprite::create("Player.png");
_tileMap = CCTMXTiledMap::tiledMapWithTMXFile("TileMap.tmx"); ↑これは非推奨(deprecated) _tileMap = CCTMXTiledMap::create("TileMap.tmx"); これつかう