fixing up the branch

This commit is contained in:
logsol 2012-07-22 13:05:29 +02:00
parent 005fb57c31
commit 76391c2c5e
6 changed files with 19 additions and 11 deletions

View file

@ -10,7 +10,7 @@ define([
function(Parent, PhysicsEngine, Settings, InputController, requestAnimFrame, NotificationCenter) {
function GameController () {
Parent.apply(this, new PhysicsEngine());
Parent.call(this, new PhysicsEngine());
this.inputControllers = {};
@ -18,6 +18,9 @@ function(Parent, PhysicsEngine, Settings, InputController, requestAnimFrame, Not
this.updateWorld();
}
GameController.prototype = Object.create(Parent.prototype);
console.log(GameController.loadLevel);
GameController.prototype.update = function() {
requestAnimFrame(this.update.bind(this));