- オリジナルはPhaser2版
- このプロジェクトの雛形
- Phaser3用プラグインのテンプレート
- クラスドキュメント
cd ~/documents/github/phaser3-docs
php -S 0.0.0.0:3000
以上設定してから、http://localhost:3000/docs/list_class.html
build/AdvancedTiming.js
か、同パスのmin.js
をアプリのJavaScriptから読める場所におくpreload
で以下を呼ぶ
this.load.plugin('AdvancedTiming', 'build/AdvancedTiming.js');
create
で以下を呼ぶ
this.sys.install('AdvancedTiming');
- メソッドを呼び出す
window.AdvancedTiming.prototype.test("me");
We need Node.js to install and run scripts.
Run next commands in your terminal:
Command | Description |
---|---|
npm install |
Install dependencies and launch browser with examples. |
npm start |
Launch browser to show the examples. Press Ctrl + c to kill http-server process. |
======= |