context awarenes in Core

This commit is contained in:
Jeena 2013-12-09 17:35:29 +01:00
parent b82b02d4ab
commit c1a4f16cc4
14 changed files with 50 additions and 14 deletions

View file

@ -1,9 +1,8 @@
define([
"Game/Core/Collision/Detector",
"Lib/Vendor/Box2D"
"Game/Core/Collision/Detector"
],
function (Parent, Box2D) {
function (Parent) {
function Detector (player) {
Parent.call(this, player);
@ -11,5 +10,8 @@ function (Parent, Box2D) {
Detector.prototype = Object.create(Parent.prototype);
Detector.IDENTIFIER = Parent.IDENTIFIER; // Needed because otherwise it will not be
// inherited because it is not in prototype
return Detector;
});

View file

@ -1,5 +1,5 @@
define([
"Game/Core/Level"
"Game/Core/Loader/Level"
],
function(Parent) {