If you want to run phaser-examples locally. As its index.html says that we need to install php and some web container.
But I don't like php, so I want to write a simple server with node.js
to host the example locally.
- clone the project
- change the
config.example.json
toconfig.json
, edit to specify the path of exmaples - install the dependencies by
npm install
- start the server
./bin/www
- vist http://localhost:3000
- left pannel use to select the example
- the big screen is the game container
- below is the related code
- write a
CLI
so that can start the server by specify the path of example - Any bugs, write a issue