/phaser3-advanced-timing

advanced timing for phaser3

Primary LanguageJavaScriptMIT LicenseMIT

Phaser3用AdvancedTiming

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");

Requirements

We need Node.js to install and run scripts.

Install and run

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.
=======