This is a Phaser Editor 2D v3 project template.
- It includes the latest Phaser v3 runtime (in the
lib/folder). - It is coded in JavaScript.
- It includes a VS Code project configuration (
jsconfig.jsonfile) and the type definitions (in thetypes/folder).
If you have NodeJS installed, you can run the editor using the editor NPM script, defined in the package.json file.
First you have to install & update the dependencies:
$ npm install
$ npm updateAnd then you can run the editor:
$ npm run editorIf you are in a remote environment (like the Gitpod.io IDE), then run the editor like this:
$ npm run editor-remoteIf you want to see all the editor options, run:
$ npx phasereditor2d-launcher -helpIf Phaser Editor 2D Core is globally installed, you can run:
$ PhaserEditor2D -project .This repository is ready to start coding in Gitpod, a Cloud Development Environment. You only need to [click on this link to start a new workspace.
This is what Gitpod does:
- Creates a workspace for this project.
- Opens VS Code to edit this repo.
- Installs & updates the dependencies of this repo.
- Runs Phaser Editor 2D Core server in port
1959.
In the Ports panel in VS Code, it shows the links for opening the editor (port 1959). It gives you the option of copying the URL, opening the URL in a preview panel, or opening the URL in a new tab.
Script nodes are logic objects. You can add a script node to the scene or a game object, for extending it with custom data and behavior.
This project includes the script libraries: