View on GitHub

RSGUI

GUI Library for Phaser

Document Example Download this project as a .zip file Download this project as a tar.gz file

Making Game Development
Simpler and Faster

Features

  • GUI components

  • Theme support

  • Easy to use

Getting Started

var game = new Phaser.Game(480, 320, Phaser.CANVAS,
'', {preload:preload,create:create});
game.gui = new RSCanvasGUI(game);
//load custom theme if required
game.gui.loadTheme('theme.json');
function preload() {
  //load theme assets if required
  game.gui.loadAsset();
}
function create() {
  //add a gui component -- button
  button1 = game.gui.add.button(0,0,"button");
}