new health bars wow
This commit is contained in:
parent
9e8abe19ef
commit
828a4ccecc
28 changed files with 466 additions and 70 deletions
|
@ -1,9 +1,9 @@
|
|||
extends "res://maps/map.gd"
|
||||
|
||||
|
||||
onready var sg_health: HSlider = $"%SGHealth"
|
||||
onready var sg_energy: HSlider = $"%SGEnergy"
|
||||
onready var fami_health: HSlider = $"%FamiHealth"
|
||||
onready var sg_health: TextureProgress = $"%SGHealthBar"
|
||||
onready var sg_energy: TextureProgress = $"%SGEnergyBar"
|
||||
onready var fami_health: TextureProgress = $"%FamiHealthBar"
|
||||
onready var sg2083: KinematicBody2D = $"2083"
|
||||
onready var famira: Node2D = $Famira
|
||||
|
||||
|
@ -13,13 +13,15 @@ func _ready() -> void:
|
|||
sg2083.state = sg2083.State.INACTIVE
|
||||
famira.animation_player.play("grow", -1.0, 0.0)
|
||||
|
||||
func _process(delta):
|
||||
sg_energy.value -= 1
|
||||
|
||||
func _on_2083_health_changed(amount) -> void:
|
||||
sg_health.value = amount
|
||||
|
||||
|
||||
func _on_Famira_health_changed(amount) -> void:
|
||||
fami_health.value = -amount
|
||||
fami_health.value = amount
|
||||
|
||||
|
||||
func _on_cutscene_finished() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue