Skip to content

Commit

Permalink
Debug improvement
Browse files Browse the repository at this point in the history
Debugging mode is now fully outsourced into debug.js;
Debug mode now needs to be manually activated by typping
ActivateDebugging() into the console
  • Loading branch information
MerGatto committed Feb 12, 2016
1 parent f4138c9 commit 201957e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 7 additions & 1 deletion scripts/debug.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
var debug = true;
var debug = false;

function ActivateDebugging() {
debug = true;
setInterval(DrawDebugInfo, 100);
DrawDebugInfo();
}

//Gibt ein paar nützliche Daten zum Debuggen aus
function DrawDebugInfo() {
Expand Down
7 changes: 1 addition & 6 deletions scripts/laserdodge.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,7 @@ window.onload = function () {

if (window.mobilecheck()) {
CBOrientClicked();
}

if (debug) {
setInterval(DrawDebugInfo, 100);
}

}
}

function StartGame() {
Expand Down

0 comments on commit 201957e

Please sign in to comment.