only restart on fresh press of spacebar
This commit is contained in:
1 parent
5b7273e9d9
commit
e908434a20
1 file changed
+3
-1
+3
-1
@@ -530,7 +530,9 @@ class Player extends PrimaryView {
|
||||
}
|
||||
else {
|
||||
// Restart
|
||||
this.restart_level();
|
||||
if (!this.current_keys.has(ev.key)) {
|
||||
this.restart_level();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user