2014-05-17から1日間の記事一覧
あと、気持ち悪いのが、compareだ。 CCDictionary *properties = _tileMap->propertiesForGID(tileGid); if (properties) { CCString *breakable = new CCString(); *breakable = *properties->valueForKey("Breakable"); if (breakable && breakable->compa…
properties->setObject(ccs("Breakable"), "False"); とやったときに、Breakableがキーとなり、Falseが値と思った。URL: http://www.cocos2d-x.org/reference/native-cpp/V2.2.3/d7/d5f/classcocos2d_1_1_c_c_dictionary.htmlしかし、逆のようだ。 // Create…
Atlasを生成したら、デフォルトは.xmlになってしまう。なので、ドラッグした後の設定を変える。 をして Cocos2dを選択してApply。
CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 32 bits/pixel; 3-component color space;のバグ。 http://sukesan1984.com/wordpress/2013/09/29/671 に同じようにバグが出てる方がいた。そこの先にあるように URL:…