Removed player reset on hit
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user