forked from team-sg/hero-mark-2
tie fami cutscene into boss3 level
This commit is contained in:
parent
7cf99cb510
commit
87973f77e0
12 changed files with 568 additions and 60 deletions
|
@ -3,8 +3,14 @@ extends "res://maps/map.gd"
|
|||
|
||||
onready var sg_health: HSlider = $"%SGHealth"
|
||||
onready var fami_health: HSlider = $"%FamiHealth"
|
||||
onready var sg2083: KinematicBody2D = $"2083"
|
||||
onready var famira: Node2D = $Famira
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
sg2083.state = sg2083.State.INACTIVE
|
||||
famira.animation_player.play("grow", -1.0, 0.0)
|
||||
|
||||
|
||||
func _on_2083_health_changed(amount) -> void:
|
||||
sg_health.value = amount
|
||||
|
@ -12,3 +18,12 @@ func _on_2083_health_changed(amount) -> void:
|
|||
|
||||
func _on_Famira_health_changed(amount) -> void:
|
||||
fami_health.value = -amount
|
||||
|
||||
|
||||
func _on_cutscene_finished() -> void:
|
||||
sg2083.visible = true
|
||||
sg2083.state = sg2083.State.STAND
|
||||
famira.visible = true
|
||||
famira.animation_player.play("grow")
|
||||
yield(get_tree().create_timer(0.5), "timeout")
|
||||
$FamiCutscene/FamiHuman.visible = false
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -50,6 +50,7 @@ shader_param/arc_color = Color( 1, 0.93, 0, 1 )
|
|||
shader_param/gamma = 2.0
|
||||
shader_param/flash_rate = 3.0
|
||||
shader_param/flash_intensity = 0.2
|
||||
shader_param/background_color = Color( 0, 0, 0, 0 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 16.9355, 4.03226 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue