From f3f9138ddcdbf8b2335028dbb6ebeb7906967d66 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sat, 21 Jul 2012 21:53:11 +0200 Subject: [PATCH] fixed define-paths and added Detector for the constant --- app/Game/Core/Loader/Level.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Game/Core/Loader/Level.js b/app/Game/Core/Loader/Level.js index a45137d..63f5eff 100644 --- a/app/Game/Core/Loader/Level.js +++ b/app/Game/Core/Loader/Level.js @@ -1,4 +1,4 @@ -define(["Chuck/Settings", "Chuck/Constants", "Vendor/Box2D"], function(Settings, Constants, Box2D) { +define(["Game/Config/Settings", "Lib/Vendor/Box2D", "Game/Core/Collision/Detector"], function(Settings, Box2D, Detector) { // Public function Level(path, engine) { @@ -50,7 +50,7 @@ define(["Chuck/Settings", "Chuck/Constants", "Vendor/Box2D"], function(Settings, fixtureDef.friction = Settings.TILE_FRICTION; fixtureDef.restitution = Settings.TILE_RESTITUTION; fixtureDef.isSensor = false; - fixtureDef.userData = Constants.COLLISION_IDENTIFIER_TILE; + fixtureDef.userData = Detector.COLLISION_IDENTIFIER_TILE; this.engine.createBody(bodyDef).CreateFixture(fixtureDef); }