My HTML5 game skeleton
I’m going to use Pixi.js for the upcoming competition so I decided to make a simple application skeleton which I’m going to use for my contest entry. There’s nothing special in it, just a set of open-source libraries and a few additional classes from my previous projects. The code is licensed under MIT license so you’re free to use it for your game entry or future projects.
Included libraries:
- Pixi.js
- Spine.js
- SoundManager2
- Underscore
- TweenJS
- PreloadJS
- Compass
Services
- Facebook sharing
- Twitter sharing
- Google Analytics
Goodies:
- Simple preloader
- Simple sound manager
- Animator class for pixi.js
- Base controller for Spine
- Sample sprite atlas
- CSS & JavaScript compression with YUI
I also made it possible to easily deploy it to Heroku. Here’s how it looks like: http://desolate-anchorage-4389.herokuapp.com/
You can download the source code at my GitHub page. I wrote a short instruction on how to setup it, but if you’ll decide to use it – please let me know so I can help. It’s a Ruby on Rails application so it may require some skills to setup, but nothing very special. If you’ll have any questions – feel free to ask.