Frozen is an open-source HTML5 game engine delivering ease-of-use, rapid development through tooling and modularity.
Our goal is to apply techniques used in building modern webapps to game development, such as AMD modules, dependency management, build process, and project scaffolding.
-
Frozen (single file - AMD loader included)
Development and Production -
Package Managers
Note: We supply a jam package and specify dependencies. Although these should work for game creation using the engine, frozen cannot be built or run with jam deps only
- Frozen Source (but don't forget your dependencies)
Clone it from github -git clone git://github.com/iceddev/frozen
or grab the zip: Frozen Source
We provide both a yeoman generator and a volo project scaffolding
npm install -g yo grunt-cli bower generator-frozen
- Install yo, grunt-cli, bower, and generator-frozenmkdir your_game
- Create a new directory for your gamecd your_game
- Enter directory for you gameyo frozen
- Answer a few questions, scaffold a new game and install all dependenciesgrunt
- Starts a static server with live reloading and opens your browser to your game
npm install -g volo
- Install volovolo create your_game frozenjs/boilerplate
- Scaffold a new game and install all dependenciesvolo grunt
- Starts a static server with live reloading and opens your browser to your game
Documentation is available at http://frozenjs.com/docs/
Play examples at http://frozenjs.com/examples/
Examples source code can be found at https://github.com/iceddev/frozen/tree/master/examples
Source available on github: https://github.com/iceddev/frozen
We have tested in:
- Chrome 27 & 30-canary
- Firefox 21 & 22
- IE10 (sound with supported codecs)
- Safari 6.0.3
- Chrome for Android 27 & Beta 28 (limited sound support) - Suggestion: in
chrome://flags
, turn on "Disable gesture requirement for media playback" & "Enable WebAudio" - Firefox for Android 22 & Beta 23 (Doesn't load some Box2d examples - unsure why)
- PhantomJS 1.9.1
Most modern browsers should support this game engine if they support requestAnimationFrame or canvas, but YMMV with sounds
Our Frozen Box2d Editor is available at http://phated.github.com/frozen-editor/
Yeoman generator can be found at https://github.com/frozenjs/generator-frozen
Volo boilerplate can be found at https://github.com/frozenjs/boilerplate
While builds of Frozen may be tiny, we use some libraries and technologies behind the scenes as to not reinvent the wheel.
These technologies include:
- Node.js and npm - used for dependecy mangement for our build process and development workflow
- Grunt - task runner for our development workflow, and allows for a single entry point into development configuration
- Volo - clientside dependency management and project scaffolding tool
- Lo-Dash - low-level utility library used inside the library
- Hammer.js - multi-touch library used for mouse/touch/pointer event normalization and gestures
- dcl - used for generating constructors and supplying AOP convenience methods
- Box2d - used for physics calculations in games
- Dojo - used for AMD loader and some utility modules inside the library, Dojo build process is used to build a single JS file
- JSDoc - generates documentation for code
- Jasmine - tests all use Jasmine
- AMD - all modules are written with AMD and the single layer includes an AMD module loader
All development tasks depend on having dependencies installed.
Use npm install
to get all the build process dependencies
Use volo add
to get all the library dependencies
grunt build
to lint, test, doc, and run dojo build process to build the single layer
grunt docs
will lint and generate docs
grunt test
to lint, run tests in PhantomJS and open your default browser at the test URL
grunt jshint:all
to lint the project
grunt watch:all
to execute grunt build
whenever a file changes
Breaking Changes
- None! This is a bug fix release
New Features
- Fixed rotation property on entities
Non-Breaking Changes
- Update Lo-Dash dependency location
- Remove extra call to
loadResources
inGameCore#run
Deprecations
- None! This is a bug fix release
Breaking Changes
- None! This is a bug fix release
New Features
- Yeoman generator support!!! See https://github.com/frozenjs/generator-frozen
- Box now handles sensors! Just add sensor property to your entities and they will start showing up in your collision handlers
- Added Gamepad API example
Non-Breaking Changes
- Fix bug where
GameCore.stop
didn't actually stop a game - Disable
prevent_default
option on default Hammer.js configuration insideInputManager
- it caused problems with click events on DOM elements - Fix error on Chrome for Android when there was no WebAudio is available
Deprecations
- None! This is a bug fix release
Full changelog available: Changelog
The MIT License (MIT)
Copyright (c) 2013 Iced Development, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.