credits should be done for good now

This commit is contained in:
pennyrigate 2024-06-21 23:58:59 -04:00
parent ccfd437318
commit ccca031ed2
9 changed files with 221 additions and 81 deletions

View file

@ -16,6 +16,7 @@ export var hp: float = 100.0
export var sg2083_beam_dps: float = 10.0
export var sg2083_path: NodePath
export var defense: float = 0.6
export var credits: bool = false
onready var animation_player: AnimationPlayer = $"%AnimationPlayer"
@ -25,6 +26,9 @@ onready var out_range_cast: RayCast2D = $OutRangeCast
onready var shoot_range_cast: RayCast2D = $ShootRangeCast
onready var grumble = $Grumble
func _ready():
if credits: animation_player.play("roar")
func _physics_process(delta: float) -> void:
var sg2083 := get_node(sg2083_path)
if sg2083 and sg2083.state == 0:
@ -72,7 +76,8 @@ func _on_Roar_state_entered() -> void:
func _roar() -> void:
Audio.play_sound(Audio.a_famira, Audio.ac_boss)
if credits == false:
Audio.play_sound(Audio.a_famira, Audio.ac_boss)
func _on_Chasing_state_entered() -> void:

View file

@ -4240,25 +4240,25 @@ collision_mask = 128
monitorable = false
[node name="Body" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 0.00461769, -23.9291 )
rotation = -0.0114693
position = Vector2( 0.00459766, -23.9291 )
rotation = -0.0114701
shape = SubResource( 13 )
[node name="Brain" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 11.5072, -96.7914 )
position = Vector2( 11.5069, -96.7914 )
rotation = 2.48158
z_index = 100
shape = SubResource( 14 )
[node name="LowerJaw" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( -21.3082, -76.1166 )
rotation = 1.66396
position = Vector2( -21.3083, -76.1164 )
rotation = 1.66395
z_index = 100
shape = SubResource( 15 )
[node name="UpperJaw" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( -21.8181, -103.259 )
rotation = -1.66238
position = Vector2( -21.8184, -103.259 )
rotation = -1.66239
z_index = 100
shape = SubResource( 16 )