Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samme/phaser-plugin-update

Runs a Game Object's update method automatically
https://github.com/samme/phaser-plugin-update

phaser phaser-plugin phaser3 phaser3-plugin

Last synced: 4 months ago
JSON representation

Runs a Game Object's update method automatically

Awesome Lists containing this project

README

        

Phaser 3 Update Plugin
======================

Runs a Game Object's `update` method automatically.

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

In a scene:

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