phaser-percent-bar
phaser-percent-bar copied to clipboard
Auto-updating percentage bar for Phaser.
Replicate: ``` const x = this.game.add.sprite(0, 0, 'white-square') x.width = 2 this.game.add.existing(new PercentBar({ host: x, width: 20 // etc... }) ``` Scaling doesn't work as expected - should have option...
- [ ] Add the ability to add sprite via JSONAtlas or JSONArray by declaring key and frame for the fill or background - [ ] Add example and .gif...
Add: * `valueHost` as object - default to `host` * `maxHost` object option * allow passing `max` as string - if string, update according to `maxHost[max]` (default to `host`)