An HTML5 Game Engine built for speed and power.
- About
- Getting Started
- Grunt Tasks
- About
This project's goal is to build an HTML5 Massive Online Battle Arena. For this project, this team decided This team has researched many existing HTML5 game engines, and found them all lacking in some area or another. The specific goals of this game and game engine are listed below.
- Use a Component, Entity, System Game Engine Design Pattern. For more info, see here.
- Utilize Web Workers to do the game simulation, allowing for greater frame rate and a better user experience.
- Use Peer-to-Peer networking for syncronization.
See documentation here.
NOTE: Below we refer to sim and main when running the development tools. sim means that the operation will be run on the Simulation code (inside a webworker), and main means that the operation will be run on the code that runs in the normal window environment.
Install from the package.json
npm install
Get Grunt
npm install -g yo grunt-cli
Get Google Closure Library
git clone https://code.google.com/p/closure-library/ app/closure-library
Get local dependancies
bower install
Note: I have only run this on my Mac. I think it should work no problem on linux, but I haven't tested it on Windows.
grunt server
The server will start and open up the page in your web browser. The page that is loaded is the un-compiled developer version. To use the compiled version, see the "Build the Project" section. The server is a live reload, so any changes you make to a file will be reflected in the page on a reload.
grunt deps
Calculates all of the dependancies for the whole game and puts them in app/js/deps.js.
grunt build
Compiles all of the source files for the game into an optimized, minimized, single script located at app/jsc/game.js.
grunt doc
Generates the documentation for the project. The documentation is taken from annotations in the source code. The generated documentation is in the /doc folder.
For more info on the commands or the dev environment, see Closure Generator.
The engine is a Entity Component System. For more information, see the article by Adam Martin here.
- v0.0.1, Mid Dec 2013
- Big Bang
Copyright (c) 2013 ME PRETTY Licensed under the MIT.