Forked from: phi's enchant.js - ゲームの経過フレーム数を取得しよう View Diff (17) forked: enchant.js - ゲームの経過フレーム数を取得しよう ohisama1 Follow 2017-06-06 20:32:48 License: MIT License Fork0 Fav0 View327 Play Stop Reload Fullscreen Smart Phone Readme JavaScript 20 lines HTML 1 lines CSS 1 lines forked: enchant.js - ゲームの経過フレーム数を取得しよう enchant.js v0.4.0 // forked from phi's "enchant.js - ゲームの経過フレーム数を取得しよう" http://jsdo.it/phi/cxQj enchant(); window.onload = function() { var game = new Game(); game.onload = function() { var scene = game.rootScene; var label = new Label(); label.moveTo(20, 20); scene.addChild(label); scene.onenterframe = function() { label.text = "経過フレーム数 : " + game.frame; }; }; game.start(); }; <canvas id='world'></canvas> forked: enchant.js - ゲームの経過フレーム数を取得しよう body { background-color: #DDDDDD; font: 30px sans-serif; margin:0px; } // forked from phi's "enchant.js - ゲームの経過フレーム数を取得しよう" http://jsdo.it/phi/cxQj enchant(); window.onload = function() { var game = new Game(); game.onload = function() { var scene = game.rootScene; var label = new Label(); label.moveTo(20, 20); scene.addChild(label); scene.onenterframe = function() { label.text = "経過フレーム数 : " + game.frame; }; }; game.start(); }; <canvas id='world'></canvas> body { background-color: #DDDDDD; font: 30px sans-serif; margin:0px; } use an iframe compat browser, deer Play on jsdo.it games Author Share ブログに埋め込む QR Tag Download Complete! Description What kind of game? Control Device Smartphone Controllerjsdo.it WebSocket Controller» Mouse Keyboard Touch Device Fullscreen Activated Inactivated jsdo.it games から削除する Submit Author ohisama1 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/cI55X/js"></script> enchant.js game javascript library&test smartphones&tablets 怒濤 Discussion Questions on this code? Tags enchant.js game javascript library&test smartphones&tablets 怒濤