提交 4ad15d4c 编写于 作者: G Gabriele Cirulli

add R key to restart game

上级 a6531b08
......@@ -61,6 +61,11 @@ KeyboardInputManager.prototype.listen = function () {
self.emit("move", mapped);
}
}
// R key restarts the game
if (!modifiers && event.which === 82) {
self.restart.call(self, event);
}
});
// Respond to button presses
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册