started to add ability to restart game at any time by pressing enter

This commit is contained in:
lengstrom 2014-05-24 16:36:39 -04:00
parent cf574f8599
commit 78f020dd1b

View file

@ -22,6 +22,9 @@ keypress.register_combo({
keys: "enter",
on_keydown: function() {
init();
if (gameState == -1) {
requestAnimFrame(animLoop);
}
}
});