Create a "workspace" folder. It is a folder with all the repositories you will need:
$ mkdir repos
$ cd repos
Clone the PhaserEditor2D-v3 repository and checkout the develop
branch:
$ git clone https://github.com/PhaserEditor2D/PhaserEditor2D-v3.git
$ cd PhaserEditor2D-v3
$ git checkout develop
$ cd ..
Clone this repository:
$ git clone https://github.com/PhaserEditor2D/phasereditor2d-roundedRectangle-plugin.git
Build the plugins:
$ cd phasereditor2d-roundedRectangle-plugin
$ npm install
$ npm start
Run the latest version of the PhaserEditor2D
server. It should load the plugin with the -plugins
flag:
$ PhaserEditor2D -plugins "source/plugins"
Open the browser in http://127.0.0.1:1959.
The build.sh
script creates the distribution files, in the dist/
folder:
$ ./build.sh
This script requires a Unix-like environment.