2013-02-01から1ヶ月間の記事一覧
http://www.backlog.jp/git-guide/reference/trouble-shooting.htmlこの設定しないとだめなのか?
・C#では? → 余裕 Dictionary<string, string> dic1 = new Dictionary<string, string>(); Dictionary<string, string> dic2 = new Dictionary<string, string>(); List<Dictionary<string, string>> list = new List<Dictionary<string, string>>(); list.Add(dic1); list.Add(dic2); ・UnityScriptでは? → エラーになります! var dic1 : D…</dictionary<string,></dictionary<string,></string,></string,></string,></string,>
hogeTransというあるGameObjectのtransformがあったとして、 子にはhoge GameObjectが2つぶら下がってて同じ名前のせいか2個めがうまくいかない。 Destroy(hogeTrans.Find("hoge").gameObject); // Destroyされる hogeTrans.Find("hoge").localScale = Vecto…
http://blog.csdn.net/jyzgo/article/details/8471306 しかしここのソースはcoco2d-xっぽい書き方ではない
よくわからないエラーが出たが、 http://stackoverflow.com/questions/1693471/undefined-symbols-ld-symbol-not-found怒られたファイルのコンストラクタとデストラクタを見てみた。 class ActionSprite : public cocos2d::CCSprite { public: ActionSprite(…
どちらもできるっぽい ・Android http://gettingsignals.blogspot.jp/2012/11/androidwebview.html・iOS http://d.hatena.ne.jp/unetori/20100309/1268091733注意!HTML自体も透明にしないといけないらしい! http://d.hatena.ne.jp/knnfm/20120118/13268527…
using namespace cocos2d; をいれてないと _velocity = CCPointZero; no viable overloaded =という謎のエラーで怒られる。CCPointZeroとCGPointZeroは何が違う? CCPointとCGPointも謎。
callfunc_selectorで囲む。メソッド名は()も書く CCCallFunc::create(callfunc_selector(idle()), NULL);
CCSpriteを継承したActionSpriteクラス class ActionSprite : public cocos2d::CCSprite { さらに、ActionSpriteクラスを継承したHeroクラス class Hero : public ActionSprite { _hero変数は Hero *_hero; と定義していて、このように(Hero*)でキャストしな…
_hero.position = ccp(_hero.centerToSides, 80); こんなのはできない .positionみたいに書くと、->に置き換えるのを進められるが、 _hero->position = ccp(_hero.centerToSides, 80); なんてできない _hero->setPosition(ccp(_hero.centerToSides, 80)); に…
CCString *str = CCString::createWithFormat("hero_idle_%02d.png", i); CCSpriteFrame *frame = CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName(str); spriteFrameByNameに渡したのが、CCStringだとダメっぽい Cannot initalize a para…
中国語なのが惜しい http://article.ityran.com/archives/2847
いろいろブログ見たけど、ハマリどころを書いてないのでメモしました。ノイズみたいな記事が多すぎ。 URL: http://d.hatena.ne.jp/anatoo/20120310/1331321778普通にインストールせずにファイルとしてSupervisorを置くだけで使えるらしいが、 「supervisor.m…
Toanadoをサーバ上で実行させようと思ったら、バックグラウンドプロセスでできない・・。 URL: http://webos-goodies.jp/archives/deploying_tornado_with_supervisord.htmlsupervisord使おうと思ったら、Python3に対応してなくて、 219行あたりにある #exce…
sass --style expanded scss/main.scss:css/main.css変換前:変換後 scss/main.scssをcss/main.cssに変換 style expanded このオプションがないと変な字下げが残ってしまう。 変換後のcssフォルダがないと Errno::ENOENT: No such file or directory - css/ma…
sudo gem update --system sudo gem install sassgemをアプデートしてからインストール
http://androidhacker.blog94.fc2.com/blog-entry-24.htmlけいじろうさんのWebViewプラグイン(僕がフォークしたもの) https://github.com/shinriyo/unity-webview-integration/blob/master/android/AndroidManifest.xml
ValueError: HTTPS requires either python2.6+ or curl_httpclientURL: https://github.com/facebook/tornado/issues/293 github に同じエラーで困ってる人がいた。SAKURAサーバでうってみた yum list installed | grep ssl sudo yum install openssl sudo …
//CCArray *idleFrames = CCArray::arrayWithCapacity(6); CCArray *idleFrames = CCArray::createWithCapacity(6); たいていdeprecatedが出たら、create〜にしたらいいかもしれない。
URL:http://www.cocos2d-x.org/boards/6/topics/6499 if ((self = [super initWithSpriteFrameName:@"myimage.png"])) { みたいなのをよく見る。 親クラスのinitWithSpriteFrameNameメソッドの結果を自身に代入している?みたいなのは if(this->initWithSpri…
x = 9 if x in range(5,10): print('範囲内だお') こうすれば x = 9 if 5 <= x and 10 > x: print('範囲内だお') ってしなくていい
※時間があればもっと綺麗にまとめたい 英語だがここがまとまってるので英訳して欲しいな〜(USもC#のサンプルもあるし)→ http://robotduck.wordpress.com/2009/11/04/88/→UnityScriptはArrayがダメダメなので他のをよく使う。しかしどれがどれかすぐ忘れる…
" pip freeze | grep パッケージ名" Tornadoのバージョン確認したかったので pip freeze | grep tornado
" pip freeze | grep パッケージ名" Tornadoのバージョン確認したかったので pip freeze | grep tornado
日本語のドキュメントURL:http://docs-jp.unity3d.com/Documentation/Manual/iphone-playerSizeOptimization.html?#・Use micro mscorlib 日付けをとるDateTimeとか使うときはSystemをインポートするし、 XML使うには、System.Xmlを使わずにやらねばならない…
もともとこうなっていたが、 self.facebook_request("/me/friends", self._on_stream, access_token=self.current_user["access_token"] "/me/friends"を "/me/friends?fields=id,name,gender"にして性別を取得しようとしたが、 ループしてしまう・・。URL:h…
http://stackoverflow.com/questions/7742498/facebook-graph-api-comment-list-sort-like-orderby-desc http://stackoverflow.com/questions/3372531/how-to-order-results-for-facebook-graph-api 見る限り、Graph APIではできないのでFQLを使えってことら…
配列の最後にもカンマを入れていいのはブラウザ依存っぽい。 古いIEはできない。 arr = [ 1, 2, 3, ] http://d.hatena.ne.jp/sugyan/20120503/1335975532UnityScriptもケツカンマ出来ない!こんなドメインもあります http://xn--lckl1dufqe.com/
フォーラムのURL: http://forum.unity3d.com/threads/84775-ran-out-of-trampolines-type-2↑上記URLのフォーラムにもあるが、 「Build Settings」の「AOT Compilation Options」に「nimt-trampolines=ABCD」のようなフォーマットで記載すると直ったりする。…
・ある方のTweet https://twitter.com/xyome/status/190590747681099780 →・スレッド http://forum.unity3d.com/threads/113181-LitJSON-issue-on-iOS → UnityScriptで書かれていて残念だがマッパーを書いてくれている。 ※ JsonMapper,jsで作ればいいと思う…