remove debug stuff
This commit is contained in:
@@ -45,11 +45,5 @@ collision_mask = 31
|
|||||||
scale = Vector2(50, 50)
|
scale = Vector2(50, 50)
|
||||||
shape = SubResource("CircleShape2D_khlsn")
|
shape = SubResource("CircleShape2D_khlsn")
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="BossArea/CollisionShape2D"]
|
|
||||||
offset_left = -10.0
|
|
||||||
offset_top = -10.0
|
|
||||||
offset_right = 10.0
|
|
||||||
offset_bottom = 10.0
|
|
||||||
|
|
||||||
[connection signal="body_entered" from="BossArea" to="." method="_on_boss_area_body_entered"]
|
[connection signal="body_entered" from="BossArea" to="." method="_on_boss_area_body_entered"]
|
||||||
[connection signal="body_exited" from="BossArea" to="." method="_on_boss_area_body_exited"]
|
[connection signal="body_exited" from="BossArea" to="." method="_on_boss_area_body_exited"]
|
||||||
|
|||||||
@@ -5,10 +5,8 @@ func _ready() -> void:
|
|||||||
|
|
||||||
|
|
||||||
func _on_boss_area_body_entered(_body: Node2D) -> void:
|
func _on_boss_area_body_entered(_body: Node2D) -> void:
|
||||||
print_debug("Boss area entered")
|
|
||||||
$AudioStreamPlayer.get_stream_playback().switch_to_clip_by_name("Boss")
|
$AudioStreamPlayer.get_stream_playback().switch_to_clip_by_name("Boss")
|
||||||
|
|
||||||
|
|
||||||
func _on_boss_area_body_exited(_body: Node2D) -> void:
|
func _on_boss_area_body_exited(_body: Node2D) -> void:
|
||||||
print_debug("Boss area exited")
|
|
||||||
$AudioStreamPlayer.get_stream_playback().switch_to_clip_by_name("Base")
|
$AudioStreamPlayer.get_stream_playback().switch_to_clip_by_name("Base")
|
||||||
|
|||||||
Reference in New Issue
Block a user