GithubHelp home page GithubHelp logo

slvlirnoff / my-phaser-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nkpz/my-phaser-template

0.0 2.0 0.0 2.09 MB

A project template for Phaser web games.

License: MIT License

JavaScript 84.95% CSS 1.51% Handlebars 13.54%

my-phaser-template's Introduction

My Phaser Template

A project template for Phaser web games.

What's included?

  • Gulp task manager, to handle development and distribution tasks.

  • BrowserSync development server, for cross-device testing.

  • EditorConfig support, for consistent editor configuration between collaborators โ€” check if EditorConfig support is available for your code editor.

  • JSHint for code quality check.

  • Bower for easy component management.

  • Babel to translate from ES6 to ES5 syntax. See which language features are currently supported.

  • Handlebars templates, LESS style sheets, support for source maps output, off-line cache and much more!

Development Instructions

Download and extract the packaged project contents, or clone this repository locally. Either way, the following npm scripts are available to you, performing the tasks described below.

npm install   # Installs all required project dependencies.
npm start     # Launch a development server. Same as `gulp dev`.
npm run dist  # Prepare the game release for distribution. Also `gulp dist`.
npm run clean # Delete temporary and distribution build files.

Also, you may want to install Gulp and Bower globally, but you are not required to do so.

Happy coding!

Sample Game

To see a more elaborate sample game in action, extract the sample-game.zip file, included in this repository, from the project root. The only extra dependency is localForage, so you'll need to run bower install to run the game without errors.

Wanna try something different? slush-phaser-plus is an automated project generator based on this template. Check the project page for more details, or just install it with npm (npm install --global slush-phaser-plus) and give it a shot!

(Meanwhile, development of this template will continue regularly.)

License

All source code distributed under the terms of the MIT License.

This project is based upon earlier efforts by these two brilliant developers:

Some code borrowed from gulp-starter, by Daniel Tello.

my-phaser-template's People

Contributors

rblopes avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.