This is a toy game engine written in CoffeeScript. It was extracted from a game I made for the Ludum Dare 48 hour game jam. The project is intended to serve as a foundation for quickly building browser games with coffeescript. It includes components such as the game loop and input handling using the command pattern.
You must have Node.js installed on your machine to build and run your game. Grab the installer for Mac OS or Windows from the Node website or install it using a package manager.
Install Grunt, Bower and CoffeeScript globally by running npm install -g grunt-cli bower coffee-script
.
Clone the project and run this in the root directory:
$ npm install
$ bower install
$ grunt serve
A browser window will open automatically, reloading your code whenever you save it. You can run grunt serve
again at a later time to start the development server.
Tests can be written using Mocha and Chai, and are located in the test/
directory.
First, run bower install
in the test/
directory. After that, you can run grunt test
to execute the tests.
The grunt build
command will generate a minified, release version in the dist/
folder.
Deploy this on a webserver or something.
MIT Licensed, see the LICENSE
file.