This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tm.define("SubSubHoge", { | |
superClass: "foo.SubHoge", | |
init: function(a, b, c) { | |
this.superInit(a, b); | |
this.c = c; | |
} | |
}); | |
tm.define("foo.SubHoge", { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* phi | |
*/ | |
;(function(global) { | |
global.tm = global.tm || {}; | |
var ajax = function(url, fn) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tm.asset.AssetManager.load({ | |
// 普通に読み込む | |
"image_data": "./kenkyo.jpg", | |
// type を省略しているので tmss として読み込まれる | |
"tmss_data": "./crash.tmss", | |
// tmss だけど type で json を指定しているので json で読み尾込まれる | |
"json_data00": { url: "./crash.tmss", type: "json" }, | |
// url にオブジェクトを渡しているけど type が json なので File としてかえってくる | |
"json_data01": { url: {hoge:100, foo:200}, type: "json" }, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* tmlib.js 0.2.0 | |
*/ | |
/* | |
* contant | |
*/ | |
var SCREEN_WIDTH = 465; // スクリーン幅 | |
var SCREEN_HEIGHT = 465; // スクリーン高さ | |
var SCREEN_CENTER_X = SCREEN_WIDTH/2; // スクリーン幅の半分 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tm.define(クラス名, { | |
superClass: 継承元となるクラス名(省略可) | |
// 初期化処理 | |
init: function() { | |
superInit(); // 継承もとの初期化 | |
// TODO: 処理を書いていく | |
} |
OlderNewer