Star.tscn 988 B

123456789101112131415161718192021222324
  1. [gd_scene load_steps=5 format=3 uid="uid://bs4hylgxwbr8y"]
  2. [ext_resource type="Script" path="res://component/entity/star/Star.gd" id="1_bl1jp"]
  3. [ext_resource type="AudioStream" uid="uid://j4mgj1tvivki" path="res://component/entity/star/hjm-tesla_sound_shot.wav" id="2_io5nk"]
  4. [ext_resource type="Script" path="res://component/entity/star/Sound.gd" id="3_dccmh"]
  5. [sub_resource type="CircleShape2D" id="CircleShape2D_6ypex"]
  6. [node name="Star" type="PathFollow2D"]
  7. rotates = false
  8. lookahead = 1.0
  9. script = ExtResource("1_bl1jp")
  10. [node name="Sound" type="AudioStreamPlayer2D" parent="."]
  11. stream = ExtResource("2_io5nk")
  12. script = ExtResource("3_dccmh")
  13. [node name="Trigger" type="Area2D" parent="."]
  14. [node name="Circle" type="CollisionShape2D" parent="Trigger"]
  15. shape = SubResource("CircleShape2D_6ypex")
  16. [connection signal="note_changed" from="." to="Sound" method="_on_star_note_changed"]
  17. [connection signal="area_entered" from="Trigger" to="Sound" method="_on_trigger_area_entered"]