0.1.14 • Published 6 years ago

phaser-plugin-game-gui v0.1.14

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Screenshot

Demo

Quick access to some common game settings and commands:

  • Pause and frame-stepping
  • Restart current state
  • Camera flash, shake, position, and lerp
  • Input (keyboard, mouse, touch) toggles
  • Scale mode, start/stop fullscreen
  • Sound mute and volume
  • Slow motion

Install

If not using bower or npm, include dat.gui and index.js before your game scripts.

Use

// In init() or create():
// (If you've resized `world` or `camera`, add the plugin **after** those changes.)
game.plugins.add(Phaser.Plugin.GameGui);

You can also pass options and access the GUI itself:

var gameGuiPlugin = game.plugins.add(Phaser.Plugin.GameGui, {
  // Default options:
  autoPlace: true,
  width: 245,
});

gameGuiPlugin.gui.width = 400;
gameGuiPlugin.gui.closed = true;
gameGuiPlugin.gui.destroy();

Thanks

Demo sound effects by Eric Matyas www.soundimage.org

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago