Merge branch 'master' of github.com:logsol/chuck.js

This commit is contained in:
logsol 2013-12-11 21:23:52 +01:00
commit 88d70f2549
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

@ -0,0 +1,9 @@
define([
"Game/Core/Loader/Level"
],
function(Parent) {
return Parent;
});

View file

@ -0,0 +1,9 @@
define([
"Game/Core/Physics/Doll"
],
function(Parent) {
return Parent;
});

View file

@ -0,0 +1,9 @@
define([
"Game/Core/Player"
],
function(Parent) {
return Parent;
});

View file

@ -1,7 +1,7 @@
define([
"Game/Core/Physics/Engine",
"Game/Core/Loader/Level",
"Game/Core/Player"
"Game/" + GLOBALS.context + "/Physics/Engine",
"Game/" + GLOBALS.context + "/Loader/Level",
"Game/" + GLOBALS.context + "/Player"
],
function (Engine, Level, Player) {

View file

@ -1,7 +1,8 @@
define([
"Game/Config/Settings",
"Lib/Vendor/Box2D",
"Game/Core/Collision/Detector"
"Game/" + GLOBALS.context + "/Collision/Detector"
], function (Settings, Box2D, CollisionDetector) {
// Public

View file

@ -1,7 +1,7 @@
define([
"Lib/Vendor/Box2D",
"Game/Config/Settings",
"Game/Core/Collision/Detector"
"Game/" + GLOBALS.context + "/Collision/Detector"
],
function (Box2D, Settings, CollisionDetector) {

View file

@ -1,7 +1,7 @@
define([
"Game/Config/Settings",
"Lib/Vendor/Box2D",
"Game/Core/Collision/Detector"
"Game/" + GLOBALS.context + "/Collision/Detector"
],
function (Settings, Box2D, CollisionDetector) {

View file

@ -1,5 +1,5 @@
define([
"Game/Core/Physics/Doll",
"Game/" + GLOBALS.context + "/Physics/Doll",
"Game/Config/Settings"
],

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) {

View file

@ -1,3 +1,4 @@
GLOBALS = { context: "Server" };
var requirejs = require('requirejs');
requirejs.config({

View file

@ -1,3 +1,5 @@
GLOBALS = { context: "Client" };
requirejs.config({
baseUrl: 'app',
deps: ['Lib/Utilities/Extensions']

View file

@ -1,3 +1,4 @@
GLOBALS = { context: "Server" };
var requirejs = require('requirejs');
var inspector;