phaser3-cli
v0.2.5
Published
A CLI for Phaser 3
Downloads
24
Maintainers
Readme
Phaser3 CLI
The Goal of Phaser3 CLI
Accelerate your development time, phaser 3 CLI bridles you tools so you can create more in less time. We know you like to focus on what matters most your game so we make it easy for you to set up.
Getting Started - Local Development
Prerequisites
- Make sure that you have Node 10.9 or later installed. See instructions here.
Installation
To get started locally, follow these instructions:
- Install Phaser3 CLI with:
> npm i -g phaser3-cli
Usage
- Create a new project:
> phaser new mygame
- Going to folder
> cd mygame
- Start the server
> phaser serve
You can add a scene with:
> phaser add scene <sceneName>
Android
¡Important: You need have installed Android Studio!
You can add a android project with capacitor:
- Add capacitor android project
> phaser add android
- Build your android project (Android Studio):
> phaser build android
- Update your project when you modify your game files
> phaser android copy
Web
You can build your web package with:
> phaser build
And enjoy you game dev :D