ryangiordano / phaser-plugin-update

Runs a Game Object's update method automatically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phaser 3 Update Plugin

Runs a Game Object's update method automatically.

new Phaser.Game({
  plugins: {
    scene: [{ key: 'updatePlugin', plugin: PhaserUpdatePlugin, mapping: 'updates' }]
  }
});

In a scene:

this.updates.add(gameObject);
// or
this.updates.addMultiple([ gameObject1, gameObject2 ]);

About

Runs a Game Object's update method automatically


Languages

Language:JavaScript 90.2%Language:HTML 9.8%