forked from team-sg/hero-mark-2
added infinite lives mode
This commit is contained in:
parent
f19a49f6e7
commit
ed04bf1c2e
13 changed files with 109 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue