trying to add dash

This commit is contained in:
Mees Roelofsz
2023-12-05 15:27:33 +01:00
parent 24c18521bb
commit c9aee31889

View File

@@ -123,12 +123,9 @@ function keyPressed() {
movingY = false; movingY = false;
} }
if (key == ' ' && shot == false && lives != 0) { if (key == ' ' && shot == false && lives != 0) {
if (movingX == true) {
playerPosX += 100;
} }
} }
}
async function Movementloop() { async function Movementloop() {
window.addEventListener('booleanArrayUpdated', function (event) { window.addEventListener('booleanArrayUpdated', function (event) {