added infinite lives mode

This commit is contained in:
pennyrigate 2023-02-13 02:30:44 -05:00
parent f19a49f6e7
commit ed04bf1c2e
13 changed files with 109 additions and 11 deletions

View file

@ -17,6 +17,11 @@ export (Color) var bonus_color
func _ready():
Game.time = 0
#Change graphics depending on if lives are on
if Game.use_lives:
$LivesHead.visible = true
else:
$DeathsHead.visible = true
func _physics_process(delta):
#Gold Counter
@ -35,7 +40,10 @@ func _physics_process(delta):
arrow_counter.text = str(Game.arrows)
##TOUCH UP LATER
#Lives counter
lives_counter.text = str(Game.lives)
if Game.use_lives:
lives_counter.text = str(Game.lives)
else:
lives_counter.text = str(Game.deaths)
#Life bonus color
if Game.lives == 2:
lives_counter.modulate = bonus_color