Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

erayaydin/phaser-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phaser Project Template

Its a ready and simple project template for your next Phaser game.

Features

  • Gruntfile.js for all your game scripts to one file, also with watch , its automaticly re-compile.
  • Package.json for initialize your npm package and set dependencies.
  • States
  • Objects
  • Libraries, like Phaser.

Setting up This Project Template

Firstly, you should download this project template. Secondly, download latest version of Phaser. Thirdly, installing NodeJS. Finally, install Grunt.

I think, you can download this project template easly, like Phaser. Because of this, I skip that sections.

Installing Grunt

Firstly, install NodeJS after that use that command from terminal.

npm install -g grunt-cli

Installing Dependencies

Please, navigate into the template directory's root and use that command for installing/updating dependencies.

npm install

This will read package.json and install dependencies.

Launch

Simply run command:

grunt

This will launch your browser automaticly.

Grunt will work in background. When you change your script files, it will re-compile scripts every time.


Concat Include Order

  1. Library files (Like Phaser)
  2. Object files (src/game/objects/**/*.js)
  3. State files (src/game/states/**/*.js)
  4. Main files (src/game/*.js)

Future Ideas

  • Less or Sass suppport for css.
  • Jade support.
  • Coffeescript support.
  • Uglify support for production.
  • Copy support for copy assets files.
  • Cssmin support to minified css for production.

About

Phaser Project Starter Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published