mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixing up the branch
This commit is contained in:
parent
005fb57c31
commit
76391c2c5e
6 changed files with 19 additions and 11 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue