SuperStar.tscn 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. [gd_scene load_steps=17 format=3 uid="uid://5qg8po86pew4"]
  2. [ext_resource type="Script" uid="uid://dbeg86pjflojw" path="res://Scripts/Classes/Entities/Items/SuperStar.gd" id="1_aowox"]
  3. [ext_resource type="Texture2D" uid="uid://1o654l3577lv" path="res://Assets/Sprites/Items/SuperStar.png" id="1_gpwv4"]
  4. [ext_resource type="AudioStream" uid="uid://73b2bhjg5idd" path="res://Assets/Audio/BGM/StarMan.mp3" id="2_orqf5"]
  5. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_orqf5"]
  6. [ext_resource type="JSON" path="res://Assets/Sprites/Items/StarMan.json" id="5_og7mc"]
  7. [ext_resource type="Script" uid="uid://dlq6o2rg1x7in" path="res://Scripts/Classes/Components/BasicEnemyMovement.gd" id="6_og7mc"]
  8. [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="7_sc6oi"]
  9. [ext_resource type="Script" uid="uid://d4a7yp6e55u8t" path="res://Scripts/Classes/Components/TrackJoint.gd" id="8_yyobd"]
  10. [sub_resource type="AudioStreamInteractive" id="AudioStreamInteractive_og7mc"]
  11. clip_count = 1
  12. clip_0/name = &"Star Man"
  13. clip_0/stream = ExtResource("2_orqf5")
  14. clip_0/auto_advance = 0
  15. [sub_resource type="AtlasTexture" id="AtlasTexture_ptmgm"]
  16. atlas = ExtResource("1_gpwv4")
  17. region = Rect2(0, 32, 16, 16)
  18. [sub_resource type="AtlasTexture" id="AtlasTexture_aowox"]
  19. atlas = ExtResource("1_gpwv4")
  20. region = Rect2(16, 32, 16, 16)
  21. [sub_resource type="AtlasTexture" id="AtlasTexture_53gld"]
  22. atlas = ExtResource("1_gpwv4")
  23. region = Rect2(32, 32, 16, 16)
  24. [sub_resource type="AtlasTexture" id="AtlasTexture_orqf5"]
  25. atlas = ExtResource("1_gpwv4")
  26. region = Rect2(48, 32, 16, 16)
  27. [sub_resource type="SpriteFrames" id="SpriteFrames_og7mc"]
  28. animations = [{
  29. "frames": [{
  30. "duration": 1.0,
  31. "texture": SubResource("AtlasTexture_ptmgm")
  32. }, {
  33. "duration": 1.0,
  34. "texture": SubResource("AtlasTexture_aowox")
  35. }, {
  36. "duration": 1.0,
  37. "texture": SubResource("AtlasTexture_53gld")
  38. }, {
  39. "duration": 1.0,
  40. "texture": SubResource("AtlasTexture_orqf5")
  41. }],
  42. "loop": true,
  43. "name": &"default",
  44. "speed": 15.0
  45. }]
  46. [sub_resource type="RectangleShape2D" id="RectangleShape2D_sc6oi"]
  47. custom_solver_bias = 1.0
  48. size = Vector2(8, 8)
  49. [sub_resource type="RectangleShape2D" id="RectangleShape2D_yyobd"]
  50. size = Vector2(16, 16)
  51. [node name="SuperStar" type="CharacterBody2D"]
  52. z_index = -1
  53. collision_layer = 8
  54. collision_mask = 2
  55. script = ExtResource("1_aowox")
  56. star_bgm = SubResource("AudioStreamInteractive_og7mc")
  57. metadata/_custom_type_script = "uid://cjkurwybsaywm"
  58. [node name="Sprite" type="AnimatedSprite2D" parent="."]
  59. position = Vector2(0, -8)
  60. sprite_frames = SubResource("SpriteFrames_og7mc")
  61. autoplay = "default"
  62. frame_progress = 0.792139
  63. [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
  64. script = ExtResource("4_orqf5")
  65. node_to_affect = NodePath("..")
  66. property_name = "sprite_frames"
  67. resource_json = ExtResource("5_og7mc")
  68. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  69. [node name="Collision" type="CollisionShape2D" parent="."]
  70. position = Vector2(0, -4)
  71. shape = SubResource("RectangleShape2D_sc6oi")
  72. [node name="Hitbox" type="Area2D" parent="."]
  73. [node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
  74. position = Vector2(0, -8)
  75. shape = SubResource("RectangleShape2D_yyobd")
  76. [node name="BasicEnemyMovement" type="Node" parent="."]
  77. script = ExtResource("6_og7mc")
  78. auto_call = false
  79. move_speed = 70
  80. bounce_on_land = true
  81. bounce_height = -250
  82. [node name="ScoreNoteSpawner" type="Node" parent="."]
  83. script = ExtResource("7_sc6oi")
  84. add_score = true
  85. metadata/_custom_type_script = "uid://5octqlf4ohel"
  86. [node name="TrackJoint" type="Node" parent="." node_paths=PackedStringArray("movement_node")]
  87. script = ExtResource("8_yyobd")
  88. movement_node = NodePath("../BasicEnemyMovement")
  89. metadata/_custom_type_script = "uid://d4a7yp6e55u8t"
  90. [connection signal="collected" from="." to="ScoreNoteSpawner" method="spawn_note" binds= [1000]]
  91. [connection signal="area_entered" from="Hitbox" to="." method="on_area_entered"]