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