Some cleanup
This commit is contained in:
parent
c3e9a3985f
commit
a077fe0216
3 changed files with 0 additions and 40 deletions
|
@ -1,7 +0,0 @@
|
|||
var DisplayController = function() {
|
||||
|
||||
|
||||
this.draw = function() {
|
||||
|
||||
};
|
||||
};
|
|
@ -1,26 +0,0 @@
|
|||
var GameController = function(inputController, displayController) {
|
||||
|
||||
this._loopRunning = false;
|
||||
this._loop = null;
|
||||
this._inputController = inputController;
|
||||
this._displayController = displayController;
|
||||
|
||||
this.start = function() {
|
||||
this._loopRunning = true;
|
||||
this._loop = setInterval(this.loop, 30);
|
||||
};
|
||||
|
||||
this.stop = function() {
|
||||
this._loopRunning = false;
|
||||
};
|
||||
|
||||
this.loop = function() {
|
||||
this._inputController.observe();
|
||||
|
||||
// add other stuff here
|
||||
|
||||
this._displayController.draw();
|
||||
};
|
||||
|
||||
|
||||
};
|
|
@ -1,7 +0,0 @@
|
|||
var InputController = function() {
|
||||
|
||||
|
||||
this.observe = function() {
|
||||
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue