Skip to content

phated/frozen-editor

 
 

Repository files navigation

Frozen Editor

This is a Box2D editor based on frozen/box2dEditor but cleaned up and made pretty.

Many thanks to @monteslu for developing the original editor and allowing me to complain about the code.

This project is currently hosted at http://phated.github.com/frozen-editor/ - feel free to try it out and please file any bugs you may find.

Based on Frozen Development Boilerplate

Getting started

To get your environment set up, you need node and npm

Dependencies are fetched with volo:

  1. npm install -g volo - Install volo globally
  2. volo add - Install dependencies into the project

Grunt plugins are fetched with npm:

  1. npm install - Install the devDependencies to use with Grunt
  2. npm install -g grunt-cli - Install grunt-cli to run Grunt at the command line

Development

During development, an error will be thrown because dist/game.js doesn't exist

However, we check to see if it is loaded and use the dojo loader if it isn't

We also note in the console that is happening

During development, work in the src/ directory and make small modules

You can start a development server with linting and auto-reload using the grunt command in your terminal and opening localhost:8000 in your browser

Building

Once you are ready to deploy your project, you can build with the grunt dojo command

This command will crawl your dependency tree, starting with src/game.js and build a single file dist/game.js.uncompressed.js

It will also minify your file with Google Closure Compiler into dist/game.js

You shouldn't have to make any changes to your index.html for this file to start working

Removing Build

You can remove the files generated by the grunt dojo (dist/ and libs/) by running grunt clean

License

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.

About

Box2D live editor for FrozenJS game engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

 
 
 

Languages

  • JavaScript 100.0%