<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/tmlibjs/">
    <title>tmlib.js ガイド@ Wiki</title>
    <link>http://w.atwiki.jp/tmlibjs/</link>
    <atom:link href="https://w.atwiki.jp/tmlibjs/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>tmlib.js ガイド@ Wiki</description>

    <dc:language>ja</dc:language>
    <dc:date>2014-07-16T16:57:31+09:00</dc:date>
    <utime>1405497451</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/30.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/29.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/28.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/25.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tmlibjs/pages/21.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/30.html">
    <title>tmssファイル</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/30.html</link>
    <description>
      tmlib.js専用のSpriteSheetファイル。中身はJSON形式。

あらかじめ読み込んだASSETSのスプライト画像名をimageに指定する。

例
{
    &quot;image&quot;: &quot;chiruno&quot;,
    &quot;frame&quot;: {
        &quot;width&quot;: 64,
        &quot;height&quot;: 64,
        &quot;count&quot;: 40
    },
    &quot;animations&quot;: {
        &quot;run&quot;: {
            &quot;frames&quot;: [1, 2, 11, 12],
            &quot;next&quot;: &quot;run&quot;,
            &quot;frequency&quot;: 6
        },
        &quot;idle&quot;: {
            &quot;frames&quot;: [0, 10],
            &quot;next&quot;: &quot;idle&quot;,
            &quot;frequency&quot;: 16
        },
        &quot;idle2&quot;: {
            &quot;frames&quot;: [2, 12],
            &quot;next&quot;: &quot;idle2&quot;,
            &quot;frequency&quot;: 16
        },
        &quot;idle3&quot;: {
            &quot;frames&quot;: [3, 13],
            &quot;next&quot;: &quot;idle3&quot;,
            &quot;frequency&quot;: 16
        },
        &quot;jump&quot;: {
            &quot;frames&quot;: [7, 17, 5, 15],
            &quot;next&quot;: &quot;fly&quot;,
            &quot;frequency&quot;: 8
        },
        &quot;fly&quot;: {
            &quot;frames&quot;: [8, 18],
            &quot;next&quot;: &quot;fly&quot;,
            &quot;frequency&quot;: 4
        },
        &quot;shoot&quot;: {
            &quot;frames&quot;    </description>
    <dc:date>2014-07-16T16:57:31+09:00</dc:date>
    <utime>1405497451</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/29.html">
    <title>tmxファイル</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/29.html</link>
    <description>
      タイルマップの共通形式tmx

エディタ Tiled
http://www.mapeditor.org/

Tiledの使い方参考
Tiled Map Editor を Cocos2d-html5 と使用する方法
https://developer.tizen.org/ja/documentation/articles/how-use-tiled-map-editor-cocos2d-html5?langredirect=1


TiledのXML形式と、エクスポートしたJSON形式に対応してる模様。
（吐き出したJSON形式は、手動で、拡張子をtmxにする？未確認）
ただしXML形式の場合、以下のプロパティを手動で、追加する必要がある。
（Tiledのバージョンアップに伴い、XML形式の記述がコロコロ変わるのが、原因？）
   &lt;properties /&gt;

その辺の製作者のやりとり
https://www.google.co.jp/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=5&amp;cad=rja&amp;uact=8&amp;ved=0CDgQFjAE&amp;url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Ftmlib%2FXpAtVrlVKTw&amp;ei=6zPGU-WkBtO48gXOhYJw&amp;usg=AFQjCNEBNAErYQ21zr-Coth2ysc2igS3DA&amp;bvm=bv.71126742,d.dGc

またtmx形式は、あくまでもタイルマップのマッピング情報なので、タイルとして利用した元画像も必要。

参考
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;map version=&quot;1.0&quot; orientation=&quot;orthogonal&quot; width=&quot;10&quot; height=&quot;10&quot; tilewidth=&quot;32&quot; tileheight=&quot;32&quot;&gt;
 &lt;tileset firstgid=&quot;1&quot; name=&quot;map&quot; tilewidth=&quot;32&quot; tileheight=&quot;32&quot;&gt;
   &lt;properties /&gt;
   &lt;image source=&quot;rsc/img/map.png&quot; width=&quot;256&quot; h    </description>
    <dc:date>2014-07-16T17:36:44+09:00</dc:date>
    <utime>1405499804</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/28.html">
    <title>tm.createClass</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/28.html</link>
    <description>
      0.1.xでのクラス生成。
0.2.x系ではtm.createClass();は廃止されたため、クラス生成はtm.define();によって行う。 

tm.define(&quot;クラス名&quot;,{
    init:function(){
         
    },
});    </description>
    <dc:date>2014-07-14T17:40:30+09:00</dc:date>
    <utime>1405327230</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/27.html">
    <title>エラー事例</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/27.html</link>
    <description>
      ----
*Uncaught TypeError: Cannot read property &#039;frequency&#039; of undefined tmlib.js:15124
&gt;(anonymous function) tmlib.js:15124
&gt;tm.define.fire tmlib.js:1990
&gt;tm.define._update tmlib.js:12410
&gt;tm.app.BaseApp.[[tm.createClass]]._updateElement tmlib.js:11732
&gt;tm.app.BaseApp.tm.createClass._updateElement tmlib.js:11738
&gt;tm.app.BaseApp.tm.createClass._update tmlib.js:11724
&gt;tm.app.BaseApp.tm.createClass._loop tmlib.js:11579
&gt;(anonymous function) tmlib.js:11556
&gt;temp tmlib.js:253

[[tm.display.AnimationSprite]]クラスに、与えたスプレッドシートに存在しない、
アニメーションラベルがgotoAndPlay()で指定された際に発生。

----
*Uncaught TypeError: Cannot set property &#039;x&#039; of null tmlib.js:12293
&gt;tm.define.setPosition tmlib.js:12293
&gt;tm.define.init index_user_scripts.js:103
&gt;tm_class tmlib.js:101
&gt;(anonymous function) index_user_scripts.js:66
&gt;tm.define.fire tmlib.js:1990
&gt;tm.define._dispatchPointingEvent tmlib.js:12500
&gt;tm.define.__checkPointing tmlib.js:12483
&gt;tm.define._checkTouch tmlib.js:12443
&gt;tm.define._update tmlib.    </description>
    <dc:date>2014-07-14T17:31:28+09:00</dc:date>
    <utime>1405326688</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/26.html">
    <title>tm.app.Object2D</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/26.html</link>
    <description>
      *説明
Object2D

*公式ドキュメント
[[tm.app.Object2D&gt;&gt;http://phi-jp.github.io/tmlib.js/docs/index.html#!/api/tm.app.Object2D]]    </description>
    <dc:date>2014-07-11T16:35:15+09:00</dc:date>
    <utime>1405064115</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/25.html">
    <title>tm.display.AnimationSprite</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/25.html</link>
    <description>
      *説明
スプライトアニメーションクラス

*公式ドキュメント
[[tm.display.AnimationSprite&gt;&gt;http://phi-jp.github.io/tmlib.js/docs/index.html#!/api/tm.display.AnimationSprite]]    </description>
    <dc:date>2014-07-11T15:51:42+09:00</dc:date>
    <utime>1405061502</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/24.html">
    <title>tm.app.AnimationSprite</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/24.html</link>
    <description>
      *説明
スプライトアニメーションクラス

*備考
[[tm.display.AnimationSprite]]に名前空間が変更された。    </description>
    <dc:date>2014-07-11T15:52:53+09:00</dc:date>
    <utime>1405061573</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/23.html">
    <title>tm.app.TitleScene</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/23.html</link>
    <description>
      *説明
タイトルシーン

*公式ドキュメント
[[tm.app.TitleScene&gt;&gt;http://phi-jp.github.io/tmlib.js/docs/index.html#!/api/tm.app.TitleScene]]    </description>
    <dc:date>2014-07-11T13:45:44+09:00</dc:date>
    <utime>1405053944</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/22.html">
    <title>tm.app.Scene</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/22.html</link>
    <description>
      *説明
シーンとして使用するゲームエレメントクラス

*公式ドキュメント
[[tm.app.Scene&gt;&gt;http://phi-jp.github.io/tmlib.js/docs/index.html#!/api/tm.app.Scene]]    </description>
    <dc:date>2014-07-11T13:39:09+09:00</dc:date>
    <utime>1405053549</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tmlibjs/pages/21.html">
    <title>tm.display.TriangleShape</title>
    <link>https://w.atwiki.jp/tmlibjs/pages/21.html</link>
    <description>
      *説明
簡単に三角形を描画できるクラス

*公式ドキュメント
[[tm.display.TriangleShape&gt;&gt;http://phi-jp.github.io/tmlib.js/docs/index.html#!/api/tm.display.TriangleShape]]

*サンプル
**html
&lt;canvas id=&quot;world&quot;&gt;&lt;/canvas&gt;
**js
var SCREEN_WIDTH    = 320;              // スクリーン幅
var SCREEN_HEIGHT   = 320;              // スクリーン高さ
var ASSETS = {
    &quot;chick&quot;: &quot;http://jsrun.it/assets/x/X/n/k/xXnkc.png&quot;,
    &quot;frame&quot;: &quot;http://jsrun.it/assets/5/n/Y/8/5nY87.png&quot;,
};
tm.main(function() {
    var app = [[tm.display.CanvasApp]](&quot;#world&quot;);
    app.resize(SCREEN_WIDTH, SCREEN_HEIGHT);// 画面サイズに合わせる
    app.fitWindow();// リサイズ対応
    app.background = &quot;rgb(0,50,0)&quot;;// 背景色をセット
    
    // 読み込みシーンを初期セット
    var loadingScene = tm.app.LoadingScene({
        assets: ASSETS,
        nextScene: MainScene,// 次はMainScene
        width: SCREEN_WIDTH,
        height: SCREEN_HEIGHT
    });
    app.replaceScene(loadingScene);

    // tmlib実行
    app.run();
});
tm.define(&quot;MainScene&quot;, {
    superClass: &quot;tm.app.Scene&quot;,
       </description>
    <dc:date>2014-07-11T12:06:32+09:00</dc:date>
    <utime>1405047992</utime>
  </item>
  </rdf:RDF>
