Forked from: phi's tmlib.js 0.1.4 template View Diff (33) template - tmlib.js 0.1.5 phi Follow 2013-02-18 11:36:42 License: MIT License Fork17 Fav0 View8022 Play Stop Reload Fullscreen Smart Phone Fork tree Readme JavaScript 43 lines HTML 1 lines CSS 1 lines template - tmlib.js 0.1.5 About tmlib.js の template です. fork して遊んで下さい. Links GitHub Blog Entry template - tmlib.js 0.1.5 tmlib.js v0.1.5 // forked from phi's "tmlib.js 0.1.4 template" http://jsdo.it/phi/i79A // forked from phi's "tmlib.js 0.1.3 template" http://jsdo.it/phi/w6VG /* * constant */ var SCREEN_WIDTH = 465; var SCREEN_HEIGHT = 465; var SCREEN_CENTER_X = SCREEN_WIDTH/2; var SCREEN_CENTER_Y = SCREEN_HEIGHT/2; /* * main */ tm.main(function() { // canvas インスタンス生成 var app = tm.app.CanvasApp("#world"); // リサイズ app.resize(SCREEN_WIDTH, SCREEN_HEIGHT); // 画面フィット app.fitWindow(); // 背景色をセット app.background = "rgba(0, 0, 0, 1.0)"; // TODO: ここに処理を書いていく // スタースプライト var star = tm.app.StarShape(); app.currentScene.addChild(star); // 更新 app.currentScene.update = function() { star.x = app.pointing.x; star.y = app.pointing.y; if (app.pointing.getPointing() === true) { star.rotation += 15; } }; // 実行 app.run(); }); <canvas id='world'></canvas> template - tmlib.js 0.1.5 body { background-color: #DDDDDD; font: 30px sans-serif; } # template - tmlib.js 0.1.5 ## About tmlib.js の template です. fork して遊んで下さい. ## Links - [GitHub]( https://github.com/phi1618/tmlib.js ) - [Blog Entry]( http://tmlife.net/?p=6285 ) // forked from phi's "tmlib.js 0.1.4 template" http://jsdo.it/phi/i79A // forked from phi's "tmlib.js 0.1.3 template" http://jsdo.it/phi/w6VG /* * constant */ var SCREEN_WIDTH = 465; var SCREEN_HEIGHT = 465; var SCREEN_CENTER_X = SCREEN_WIDTH/2; var SCREEN_CENTER_Y = SCREEN_HEIGHT/2; /* * main */ tm.main(function() { // canvas インスタンス生成 var app = tm.app.CanvasApp("#world"); // リサイズ app.resize(SCREEN_WIDTH, SCREEN_HEIGHT); // 画面フィット app.fitWindow(); // 背景色をセット app.background = "rgba(0, 0, 0, 1.0)"; // TODO: ここに処理を書いていく // スタースプライト var star = tm.app.StarShape(); app.currentScene.addChild(star); // 更新 app.currentScene.update = function() { star.x = app.pointing.x; star.y = app.pointing.y; if (app.pointing.getPointing() === true) { star.rotation += 15; } }; // 実行 app.run(); }); <canvas id='world'></canvas> body { background-color: #DDDDDD; font: 30px sans-serif; } use an iframe compat browser, deer Play on jsdo.it games Author Share ブログに埋め込む QR Tag Download Complete! Description What kind of game? # template - tmlib.js 0.1.5 ## About tmlib.js の template です. fork して遊んで下さい. ## Links - [GitHub]( https://github.com/phi1618/tmlib.js ) - [Blog Entry]( http://tmlife.net/?p=6285 ) Control Device Smartphone Controllerjsdo.it WebSocket Controller» Mouse Keyboard Touch Device Fullscreen Activated Inactivated jsdo.it games から削除する Submit Author phi ゲームプログラマやりながら執筆してる27歳. phina.js(tmlib.js) というライブラリ作ってます. 著書「enchant.js スマートフォンゲーム開発講座」 『日本国民全員プログラマ化計画』進行中 Math/JavaScript/HTML5/CSS3/Python/C/C++/C#/Java Blog http://phiary.me Tweet Default Panel Auto play Screenshot Readme JavaScript HTML CSS Size Width: px Height: px code <script type="text/javascript" src="http://jsdo.it/blogparts/vDe6/js"></script> art&design canvas game html5 html5_elements&api javascript library&test smartphones&tablets tmlib.js Discussion Questions on this code? Tags art&design canvas game html5 html5_elements&api javascript library&test smartphones&tablets tmlib.js Forked sort by latest page views favorite forked 星形多角形描画 - tmlib.js 0.1.5 phi 11 2381 50/1/1 art&design canvas game html5 html5_elements&api javascript library&test smartphones&tablets tmlib.js Paint Tool - tmlib.js 0.1.5 phi 281 10348 90/18/73 art&design canvas html5 html5_elements&api javascript library&test smartphones&tablets tmlib.js user_interface パズルゲーム - tmlib.js 0.1.5 phi 83 4891 211/1/1 application canvas game html5 javascript tmlib.js 1 2 3 4 5NEXT>>