Added bullet original pos return paramater

This commit is contained in:
sam
2023-12-05 13:23:09 +01:00
parent 10a4aee3e0
commit 6feaa8e08e
2 changed files with 3 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ function draw() {
bullets.forEach(myBullet => {
//zolang mybullet bestaat blijft hij drawen en updaten
({ hit, shot, isOffScreen } = myBullet.update(playerPosX, playerPosY));
({ hit, shot, isOffScreen, originalPos } = myBullet.update(playerPosX, playerPosY));
myBullet.draw();
if (isOffScreen == true) {