waited far too long for an initial commit but here we are
This commit is contained in:
10
Scripts/lives_bar.gd
Normal file
10
Scripts/lives_bar.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends TextureRect
|
||||
|
||||
@export var segments : Array[LivesBarSegment]
|
||||
var lives := 120.0
|
||||
|
||||
|
||||
func take_life():
|
||||
var segment_to_animate = ceil(lives / 6.0) - 1
|
||||
lives -= 1
|
||||
segments[segment_to_animate].take_life(1)
|
Reference in New Issue
Block a user