added tiled level support

This commit is contained in:
logsol 2014-02-03 14:08:45 +01:00
parent 83e78a5732
commit 3782fa345b
13 changed files with 113 additions and 39 deletions

View file

@ -1,10 +1,11 @@
define([
"Game/" + GLOBALS.context + "/GameObjects/GameObject",
"Lib/Vendor/Box2D",
"Game/Config/Settings"
"Game/Config/Settings",
"Lib/Utilities/Exception"
],
function (Parent, Box2D, Settings) {
function (Parent, Box2D, Settings, Exception) {
function Tile(physicsEngine, uid, options) {
this.options = options;
@ -97,6 +98,7 @@ function (Parent, Box2D, Settings) {
break;
default:
throw new Exception("Tile Creation - no shape given");
break;
}