started to add ability to restart game at any time by pressing enter
This commit is contained in:
parent
cf574f8599
commit
78f020dd1b
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ keypress.register_combo({
|
|||
keys: "enter",
|
||||
on_keydown: function() {
|
||||
init();
|
||||
if (gameState == -1) {
|
||||
requestAnimFrame(animLoop);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue