Update of generator-gamejam
| Tags: game development front-end
I created a while ago a generator for Yeoman that could scaffold a HTML 5 game project. Perfect for game jams!
After the last Ludum Dare I decided to update it a bit and make some fixes and improvements:
- Live reload works again.
- Now you can embed your game in iframes
The embedding part is important because some websites that showcase online games (like the Ludum Dare page) need this.
To give this a try:
npm install -g yo generator-gamejam
yo gamejam
You will be asked a few questions, like the name of your game or which resolution it will run on.
Now you can use Gulp to develop your game. Try these tasks:
gulp run
: this is "development mode", it will watch your JS for changes and re-run Browserify and automatically reload the web browser.gulp dist
: this will build your game and create a release in adist
folder.gulp deploy
: once you have configured your browser settings ingulp.config.json
, you will be able to deploy to your static server with this task (it uses rsync).
Take a look at the README for more info.
Happy jams! :)