Setting up phaser for html5 game development
3 options to get phaser.js
1. Just use a cdn that hosts the phaser.js and include it in your html file.
2. Download the phaser.js from and include it in your html file.
3. Clone the phaser source code from github, build it and include the phaser.js your html file. This will require you know how to use git, and you have npm installed and of course you are a pro on command lines. Here are a series of commands to build the phaser.js file. This should get you the phaser.js that you can use it in your html file.
sudo npm install -g grunt-cli git clone https://github.com/photonstorm/phaser.git cd phaser sudo npm install grunt cd dist ls -l
Now you know how to use phaser, you can just search for some sammple phaser projects in google or github, put it in your web server root directory, and you are all set to start play around with phaser.
For those who don’t know what’s git, npm, grunt:
Search within Codexpedia
Search the entire web