only restart on fresh press of spacebar

This commit is contained in:
Timothy Stiles 2020-09-26 23:01:42 +10:00
parent 5b7273e9d9
commit e908434a20

View File

@ -530,8 +530,10 @@ class Player extends PrimaryView {
} }
else { else {
// Restart // Restart
if (!this.current_keys.has(ev.key)) {
this.restart_level(); this.restart_level();
} }
}
return; return;
} }
// Don't scroll pls // Don't scroll pls