remove debug printing
remove debug printing

--- a/js/html_actuator.js
+++ b/js/html_actuator.js
@@ -107,6 +107,8 @@
   var type    = won ? "game-won" : "game-over";
   var message = won ? "You win!" : "Game over!"
 
+  if (ga) ga("send", "event", "game", "end", type, this.score);
+
   this.messageContainer.classList.add(type);
   this.messageContainer.getElementsByTagName("p")[0].textContent = message;
 };

--- a/js/keyboard_input_manager.js
+++ b/js/keyboard_input_manager.js
@@ -27,11 +27,15 @@
     38: 0, // Up
     39: 1, // Right
     40: 2, // Down
-    37: 3  // Left
+    37: 3, // Left
+    75: 0, // vim keybindings
+    76: 1,
+    74: 2,
+    72: 3
   };
 
   document.addEventListener("keydown", function (event) {
-    var modifiers = event.altKey && event.ctrlKey && event.metaKey &&
+    var modifiers = event.altKey || event.ctrlKey || event.metaKey ||
                     event.shiftKey;
     var mapped    = map[event.which];
 

comments