2012-10-01から1ヶ月間の記事一覧
CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL = 1
if (CCRect::CCRectIntersectsRect(projectileRect, targetRect)) { このように公式ドキュメントなどで公言している。 use r1.intersectsRect(r2) instead of CCRect::CCRectIntersectsRect(r1, r2)このようにr1,r2を使おうってこと if (targetRect.intersec…
CC_SYNTHESIZEって書くのはタダの変数かと思ったらsetter/getterになるようだこのように定義すれば、 CC_SYNTHESIZE(int, _mode, Mode); 他のクラスでこんな具合に書ける _gameLayer->setMode(1); if (_gameLayer->getMode() == 0) { }ModeとはどっかにMode…
http://www.cocos2d-x.org/boards/18/topics/8335
中国語だがこれはネイティブじゃないからAndroid/iOSでできるかも?http://blog.csdn.net/rorger/article/details/7335561
・1.x系は「CCStringToStringDictionary」である CCStringToStringDictionary *spawnPoint = objects->objectNamed("SpawnPoint"); int x = spawnPoint->getStrKey("x")->toInt(); しかし、2.x系はCCDictionaryが推奨らしい・・・ ・2.x系なのでこのように変…
CocosBuilderが使いやすいっぽい。 これは、ゲーム部分というより、タイトル画面とかステージ選択画面とかで使うのが吉だと思う。注意!Version 2.1のにcocos2d-xが対応したようだ。 RC版「Release Candidate(製品候補版)」だが、「Version 2.1 RC 3」を使…
ここを直す! 選べるようになった
・旧 CCTouchDispatcher::sharedDispatcher()->addTargetedDelegate(this, 0, true); ・新(v2.x) こうした CCTouchDispatcher* touchDispatcher = CCDirector::sharedDirector()->getTouchDispatcher(); touchDispatcher->addTargetedDelegate(this, 0, true…
http://albatrus.com/main/ios/2783 cocos2d
Amazon.co.jp ウィジェット
http://partake.in/events/45f74d0e-c6f0-4ad7-90c7-67954d94fbe0#Mono Android Mono Touch Entity FrameworkVitaのMobile SDK ざまりん Mono 日本法人がない WCF開発・知りたい 最初のテンプレートの変え方 Developをコンパイル(vi) .NETバージョンの見方。…
/Applications/Unity/Unity.app/Contents/Resources/ScriptTemplates/の中にある。 NewBehavior.cs NewBehavior.boo NewBehavior.js をそれぞれ書き換える。が、何故か反映されない。たとえ、再起動しても。と思ったら、 更にその中の、「ScriptTemplates」…
URL:http://d.hatena.ne.jp/shu223/20110318/1300390974 /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templatesなんてないぞ!↓githubにテンプレートあったのでそれをもって本来ある場所へ置く git clone https://github.com/chrisabru…
・パート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"); これつかう
・パート1 https://github.com/clawoo/TileBasedGameCocos2D-x・パート2 https://github.com/clawoo/TileBasedGamePart2Cocos2D-x・パート3(もともと勝手にパート3にやったものだと思われる) https://github.com/clawoo/TileBasedGamePart3Cocos2D-xWork …
なぜかTilemapのチュートリアルが最新のcocos2d-xで、「CCStringToStringDictionary」が動かない。CCMutableArray, CCArray, CCMutalbeDictionaryが嫌いなのでCCStringToStringDictionaryをtypedefで定義とあるが書き方分からない。 URL:http://www.cocos2d…
・githubからとってくる git clone https://github.com/clawoo/TileBasedGameCocos2D-x.gitこれはパート1のようだが、そのままでは、チュートリアルの本当に初期の部分しかついてないので、 タッチ部分がないため、反応がない。主役のNinja は背景に隠れてし…
最新版はJavaScriptのサンプルがあるが、やっぱC++にする。・使えるフォント http://kibunhaossan.blog.fc2.com/blog-category-4.html・トランジション http://www.jesusbosch.com/2012/07/transitions-between-scenes-in-cocos2d-x.html
すでに古いバージョンが入ってると怒られるので↓のコマンドをこの「install-templates-xcode.sh」があるとこで行う。 sudo ./install-templates-xcode.sh -fJSのテンプレートで作成すると、 プロジェクト名→ Resourcesにある hello.jsを基本いじるサンプルも…
/script/rails g jquery:install すると deprecated You are using Rails 3.1 with the asset pipeline enabled, so this generator is not needed. The necessary files are already in your asset pipeline. Just add `//= require jquery` and `//= requi…
参考:http://www.oiax.jp/rails/zakkan/rails_and_mongodb.html・Rails 3.2.8でハマったところconfig/initializers/mongoid.rb と config/database.mongo.yml は新規作成RAILS_ROOT → Rails.root.to_s RAILS_ENV → Rails.envconfig/environment.rb → Rails:…
Enter your password to install the bundled RubyGems to your system足りないgemをインストールするからパスワードを入れるってことっぽい。 ・さくらでもbitbacketからcloneできるように ssh-keygen -t rsa -C "メアド"
URL:http://loveless-ainakimono.seesaa.net/article/232323709.html使ってるMacOSはLionはあるけどMountainLionではない。シンボリックリンクを移す sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
〜: warning: Insecure world writable dir /Developer/android-sdk-macosx in PATH, mode 040777 〜〜: warning: Insecure world writable dir /Developer/android-sdk-macosx in PATH, mode 040777権限が緩いとでる なんでAndroidSDKのフォルダまで見てる…
これならTitanium Mobileが壊れてても作成できる https://github.com/appcelerator-titans/titanium_cliインストールはnode.jsのパッケージ管理rpmがあればいける。 npm install -g titanium titanium configuretitanium configureのときにはSDKの設定がいる…