From a077fe0216d1408d98e22377b91f8f877b1313bf Mon Sep 17 00:00:00 2001 From: Guillaume DE LA RUE Date: Sat, 12 Feb 2011 16:00:26 +0100 Subject: [PATCH] Some cleanup --- guiltouf/js/DisplayController.js | 7 ------- guiltouf/js/GameController.js | 26 -------------------------- guiltouf/js/InputController.js | 7 ------- 3 files changed, 40 deletions(-) delete mode 100644 guiltouf/js/DisplayController.js delete mode 100644 guiltouf/js/GameController.js delete mode 100644 guiltouf/js/InputController.js diff --git a/guiltouf/js/DisplayController.js b/guiltouf/js/DisplayController.js deleted file mode 100644 index 38ea739..0000000 --- a/guiltouf/js/DisplayController.js +++ /dev/null @@ -1,7 +0,0 @@ -var DisplayController = function() { - - - this.draw = function() { - - }; -}; \ No newline at end of file diff --git a/guiltouf/js/GameController.js b/guiltouf/js/GameController.js deleted file mode 100644 index 0ad8a85..0000000 --- a/guiltouf/js/GameController.js +++ /dev/null @@ -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(); - }; - - -}; \ No newline at end of file diff --git a/guiltouf/js/InputController.js b/guiltouf/js/InputController.js deleted file mode 100644 index 913a85b..0000000 --- a/guiltouf/js/InputController.js +++ /dev/null @@ -1,7 +0,0 @@ -var InputController = function() { - - - this.observe = function() { - - }; -}; \ No newline at end of file