From c13f5b8f1b9d7b7ca19ab7f709c36d50d5f936d7 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 26 Nov 2023 23:52:59 +0100 Subject: [PATCH] Removed player reset on hit --- web/game.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/game.js b/web/game.js index 403afa2..b2efbdc 100644 --- a/web/game.js +++ b/web/game.js @@ -46,8 +46,6 @@ function life() { textAlign(CENTER); text(lives, 500, 20); if (hit == true) { - playerPosX = 500; - playerPosY = 300; hit = false; lives -= 1; } @@ -139,7 +137,6 @@ function draw() { life(); // draw background background(0, 0, 0, 100); - if (!(lives == 0)) { // draw player fill(0, 255, 255)