YoshiEgg.tscn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. [gd_scene load_steps=36 format=3 uid="uid://ctx0nbkjf2osn"]
  2. [ext_resource type="Script" uid="uid://c0c5ctrmxhpk7" path="res://Scripts/Classes/Entities/Items/YoshiEgg.gd" id="1_byuma"]
  3. [ext_resource type="Texture2D" uid="uid://c7jq6t1d2mhur" path="res://Assets/Sprites/Items/YoshiEgg.png" id="1_xcoq2"]
  4. [ext_resource type="Texture2D" uid="uid://hdpdek7jitea" path="res://Assets/Sprites/Players/Yoshi.png" id="2_byuma"]
  5. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_peoeq"]
  6. [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="4_f5bm0"]
  7. [ext_resource type="AudioStream" uid="uid://uc55fu866hkj" path="res://Assets/Audio/SFX/YoshiEgg.wav" id="4_ljpfp"]
  8. [ext_resource type="JSON" path="res://Assets/Sprites/Items/YoshiEgg.json" id="4_r541a"]
  9. [ext_resource type="AudioStream" uid="uid://cl4e0p4fnpjn1" path="res://Assets/Audio/SFX/Yoshi.wav" id="5_ovuko"]
  10. [ext_resource type="JSON" path="res://Assets/Sprites/Players/Yoshi.json" id="6_3ntsy"]
  11. [ext_resource type="Script" uid="uid://cq6f682453q6o" path="res://Scripts/Classes/Components/ResourceSetter.gd" id="6_swra8"]
  12. [ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="7_jen1s"]
  13. [sub_resource type="AtlasTexture" id="AtlasTexture_2jlbu"]
  14. atlas = ExtResource("1_xcoq2")
  15. region = Rect2(0, 48, 16, 16)
  16. [sub_resource type="AtlasTexture" id="AtlasTexture_peoeq"]
  17. atlas = ExtResource("1_xcoq2")
  18. region = Rect2(16, 48, 16, 16)
  19. [sub_resource type="AtlasTexture" id="AtlasTexture_f5bm0"]
  20. atlas = ExtResource("1_xcoq2")
  21. region = Rect2(0, 0, 16, 16)
  22. [sub_resource type="AtlasTexture" id="AtlasTexture_f6uhp"]
  23. atlas = ExtResource("1_xcoq2")
  24. region = Rect2(16, 0, 16, 16)
  25. [sub_resource type="AtlasTexture" id="AtlasTexture_swra8"]
  26. atlas = ExtResource("1_xcoq2")
  27. region = Rect2(0, 32, 16, 16)
  28. [sub_resource type="AtlasTexture" id="AtlasTexture_jen1s"]
  29. atlas = ExtResource("1_xcoq2")
  30. region = Rect2(16, 32, 16, 16)
  31. [sub_resource type="AtlasTexture" id="AtlasTexture_ljpfp"]
  32. atlas = ExtResource("1_xcoq2")
  33. region = Rect2(0, 16, 16, 16)
  34. [sub_resource type="AtlasTexture" id="AtlasTexture_ovuko"]
  35. atlas = ExtResource("1_xcoq2")
  36. region = Rect2(16, 16, 16, 16)
  37. [sub_resource type="SpriteFrames" id="SpriteFrames_r541a"]
  38. animations = [{
  39. "frames": [{
  40. "duration": 1.0,
  41. "texture": SubResource("AtlasTexture_2jlbu")
  42. }, {
  43. "duration": 1.0,
  44. "texture": SubResource("AtlasTexture_peoeq")
  45. }],
  46. "loop": true,
  47. "name": &"Blue",
  48. "speed": 5.0
  49. }, {
  50. "frames": [{
  51. "duration": 1.0,
  52. "texture": SubResource("AtlasTexture_f5bm0")
  53. }, {
  54. "duration": 1.0,
  55. "texture": SubResource("AtlasTexture_f6uhp")
  56. }],
  57. "loop": true,
  58. "name": &"Green",
  59. "speed": 5.0
  60. }, {
  61. "frames": [{
  62. "duration": 1.0,
  63. "texture": SubResource("AtlasTexture_swra8")
  64. }, {
  65. "duration": 1.0,
  66. "texture": SubResource("AtlasTexture_jen1s")
  67. }],
  68. "loop": true,
  69. "name": &"Red",
  70. "speed": 5.0
  71. }, {
  72. "frames": [{
  73. "duration": 1.0,
  74. "texture": SubResource("AtlasTexture_ljpfp")
  75. }, {
  76. "duration": 1.0,
  77. "texture": SubResource("AtlasTexture_ovuko")
  78. }],
  79. "loop": true,
  80. "name": &"Yellow",
  81. "speed": 5.0
  82. }]
  83. [sub_resource type="AtlasTexture" id="AtlasTexture_bh1gf"]
  84. atlas = ExtResource("2_byuma")
  85. region = Rect2(0, 32, 32, 32)
  86. [sub_resource type="AtlasTexture" id="AtlasTexture_6qdj5"]
  87. atlas = ExtResource("2_byuma")
  88. region = Rect2(32, 32, 32, 32)
  89. [sub_resource type="AtlasTexture" id="AtlasTexture_3ntsy"]
  90. atlas = ExtResource("2_byuma")
  91. region = Rect2(0, 0, 32, 32)
  92. [sub_resource type="AtlasTexture" id="AtlasTexture_6x77t"]
  93. atlas = ExtResource("2_byuma")
  94. region = Rect2(32, 0, 32, 32)
  95. [sub_resource type="AtlasTexture" id="AtlasTexture_rhwve"]
  96. atlas = ExtResource("2_byuma")
  97. region = Rect2(64, 0, 32, 32)
  98. [sub_resource type="AtlasTexture" id="AtlasTexture_uvhj2"]
  99. atlas = ExtResource("2_byuma")
  100. region = Rect2(96, 0, 32, 32)
  101. [sub_resource type="AtlasTexture" id="AtlasTexture_4vchd"]
  102. atlas = ExtResource("2_byuma")
  103. region = Rect2(64, 32, 32, 32)
  104. [sub_resource type="AtlasTexture" id="AtlasTexture_x8mei"]
  105. atlas = ExtResource("2_byuma")
  106. region = Rect2(96, 32, 32, 32)
  107. [sub_resource type="SpriteFrames" id="SpriteFrames_ytyif"]
  108. animations = [{
  109. "frames": [{
  110. "duration": 1.0,
  111. "texture": SubResource("AtlasTexture_bh1gf")
  112. }, {
  113. "duration": 1.0,
  114. "texture": SubResource("AtlasTexture_6qdj5")
  115. }],
  116. "loop": true,
  117. "name": &"Blue",
  118. "speed": 5.0
  119. }, {
  120. "frames": [{
  121. "duration": 1.0,
  122. "texture": SubResource("AtlasTexture_3ntsy")
  123. }, {
  124. "duration": 1.0,
  125. "texture": SubResource("AtlasTexture_6x77t")
  126. }],
  127. "loop": true,
  128. "name": &"Green",
  129. "speed": 5.0
  130. }, {
  131. "frames": [{
  132. "duration": 1.0,
  133. "texture": SubResource("AtlasTexture_rhwve")
  134. }, {
  135. "duration": 1.0,
  136. "texture": SubResource("AtlasTexture_uvhj2")
  137. }],
  138. "loop": true,
  139. "name": &"Red",
  140. "speed": 5.0
  141. }, {
  142. "frames": [{
  143. "duration": 1.0,
  144. "texture": SubResource("AtlasTexture_4vchd")
  145. }, {
  146. "duration": 1.0,
  147. "texture": SubResource("AtlasTexture_x8mei")
  148. }],
  149. "loop": true,
  150. "name": &"Yellow",
  151. "speed": 5.0
  152. }]
  153. [sub_resource type="RectangleShape2D" id="RectangleShape2D_h0v6r"]
  154. size = Vector2(10, 10)
  155. [sub_resource type="Animation" id="Animation_f5bm0"]
  156. length = 0.001
  157. tracks/0/type = "value"
  158. tracks/0/imported = false
  159. tracks/0/enabled = true
  160. tracks/0/path = NodePath("Egg:frame")
  161. tracks/0/interp = 1
  162. tracks/0/loop_wrap = true
  163. tracks/0/keys = {
  164. "times": PackedFloat32Array(0),
  165. "transitions": PackedFloat32Array(1),
  166. "update": 1,
  167. "values": [0]
  168. }
  169. tracks/1/type = "value"
  170. tracks/1/imported = false
  171. tracks/1/enabled = true
  172. tracks/1/path = NodePath("Egg:visible")
  173. tracks/1/interp = 1
  174. tracks/1/loop_wrap = true
  175. tracks/1/keys = {
  176. "times": PackedFloat32Array(0),
  177. "transitions": PackedFloat32Array(1),
  178. "update": 1,
  179. "values": [true]
  180. }
  181. tracks/2/type = "value"
  182. tracks/2/imported = false
  183. tracks/2/enabled = true
  184. tracks/2/path = NodePath("Yoshi:visible")
  185. tracks/2/interp = 1
  186. tracks/2/loop_wrap = true
  187. tracks/2/keys = {
  188. "times": PackedFloat32Array(0),
  189. "transitions": PackedFloat32Array(1),
  190. "update": 1,
  191. "values": [false]
  192. }
  193. tracks/3/type = "value"
  194. tracks/3/imported = false
  195. tracks/3/enabled = true
  196. tracks/3/path = NodePath("YoshiHatch:playing")
  197. tracks/3/interp = 1
  198. tracks/3/loop_wrap = true
  199. tracks/3/keys = {
  200. "times": PackedFloat32Array(0),
  201. "transitions": PackedFloat32Array(1),
  202. "update": 1,
  203. "values": [false]
  204. }
  205. tracks/4/type = "value"
  206. tracks/4/imported = false
  207. tracks/4/enabled = true
  208. tracks/4/path = NodePath("YoshiSFX:playing")
  209. tracks/4/interp = 1
  210. tracks/4/loop_wrap = true
  211. tracks/4/keys = {
  212. "times": PackedFloat32Array(0),
  213. "transitions": PackedFloat32Array(1),
  214. "update": 1,
  215. "values": [false]
  216. }
  217. [sub_resource type="Animation" id="Animation_xcoq2"]
  218. resource_name = "new_animation"
  219. length = 4.0
  220. tracks/0/type = "value"
  221. tracks/0/imported = false
  222. tracks/0/enabled = true
  223. tracks/0/path = NodePath("Egg:frame")
  224. tracks/0/interp = 1
  225. tracks/0/loop_wrap = true
  226. tracks/0/keys = {
  227. "times": PackedFloat32Array(0, 1),
  228. "transitions": PackedFloat32Array(1, 1),
  229. "update": 1,
  230. "values": [0, 1]
  231. }
  232. tracks/1/type = "value"
  233. tracks/1/imported = false
  234. tracks/1/enabled = true
  235. tracks/1/path = NodePath("Egg:visible")
  236. tracks/1/interp = 1
  237. tracks/1/loop_wrap = true
  238. tracks/1/keys = {
  239. "times": PackedFloat32Array(0, 1.5),
  240. "transitions": PackedFloat32Array(1, 1),
  241. "update": 1,
  242. "values": [true, false]
  243. }
  244. tracks/2/type = "value"
  245. tracks/2/imported = false
  246. tracks/2/enabled = true
  247. tracks/2/path = NodePath("Yoshi:visible")
  248. tracks/2/interp = 1
  249. tracks/2/loop_wrap = true
  250. tracks/2/keys = {
  251. "times": PackedFloat32Array(0, 1.5),
  252. "transitions": PackedFloat32Array(1, 1),
  253. "update": 1,
  254. "values": [false, true]
  255. }
  256. tracks/3/type = "method"
  257. tracks/3/imported = false
  258. tracks/3/enabled = true
  259. tracks/3/path = NodePath(".")
  260. tracks/3/interp = 1
  261. tracks/3/loop_wrap = true
  262. tracks/3/keys = {
  263. "times": PackedFloat32Array(3),
  264. "transitions": PackedFloat32Array(1),
  265. "values": [{
  266. "args": [],
  267. "method": &"show_smoke"
  268. }]
  269. }
  270. tracks/4/type = "value"
  271. tracks/4/imported = false
  272. tracks/4/enabled = true
  273. tracks/4/path = NodePath("YoshiHatch:playing")
  274. tracks/4/interp = 1
  275. tracks/4/loop_wrap = true
  276. tracks/4/keys = {
  277. "times": PackedFloat32Array(1),
  278. "transitions": PackedFloat32Array(1),
  279. "update": 1,
  280. "values": [true]
  281. }
  282. tracks/5/type = "value"
  283. tracks/5/imported = false
  284. tracks/5/enabled = true
  285. tracks/5/path = NodePath("YoshiSFX:playing")
  286. tracks/5/interp = 1
  287. tracks/5/loop_wrap = true
  288. tracks/5/keys = {
  289. "times": PackedFloat32Array(1.5),
  290. "transitions": PackedFloat32Array(1),
  291. "update": 1,
  292. "values": [true]
  293. }
  294. [sub_resource type="AnimationLibrary" id="AnimationLibrary_byuma"]
  295. _data = {
  296. &"RESET": SubResource("Animation_f5bm0"),
  297. &"new_animation": SubResource("Animation_xcoq2")
  298. }
  299. [sub_resource type="Resource" id="Resource_2jlbu"]
  300. script = ExtResource("7_jen1s")
  301. Overworld = ExtResource("4_ljpfp")
  302. metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
  303. [sub_resource type="Resource" id="Resource_peoeq"]
  304. script = ExtResource("7_jen1s")
  305. Overworld = ExtResource("5_ovuko")
  306. metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
  307. [node name="YoshiEgg" type="CharacterBody2D"]
  308. z_index = -1
  309. collision_layer = 8
  310. collision_mask = 2
  311. script = ExtResource("1_byuma")
  312. [node name="Egg" type="AnimatedSprite2D" parent="."]
  313. position = Vector2(0, -8)
  314. sprite_frames = SubResource("SpriteFrames_r541a")
  315. animation = &"Yellow"
  316. speed_scale = 0.0
  317. [node name="ResourceSetterNew" type="Node" parent="Egg" node_paths=PackedStringArray("node_to_affect")]
  318. script = ExtResource("3_peoeq")
  319. node_to_affect = NodePath("..")
  320. property_name = "sprite_frames"
  321. resource_json = ExtResource("4_r541a")
  322. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  323. [node name="Yoshi" type="AnimatedSprite2D" parent="."]
  324. visible = false
  325. position = Vector2(0, -16)
  326. sprite_frames = SubResource("SpriteFrames_ytyif")
  327. animation = &"Green"
  328. autoplay = "Green"
  329. [node name="ResourceSetterNew" type="Node" parent="Yoshi" node_paths=PackedStringArray("node_to_affect")]
  330. script = ExtResource("3_peoeq")
  331. node_to_affect = NodePath("..")
  332. property_name = "sprite_frames"
  333. resource_json = ExtResource("6_3ntsy")
  334. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  335. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  336. position = Vector2(0, -5)
  337. shape = SubResource("RectangleShape2D_h0v6r")
  338. [node name="Animation" type="AnimationPlayer" parent="."]
  339. libraries = {
  340. &"": SubResource("AnimationLibrary_byuma")
  341. }
  342. autoplay = "new_animation"
  343. [node name="ScoreNoteSpawner" type="Node" parent="."]
  344. script = ExtResource("4_f5bm0")
  345. add_score = true
  346. metadata/_custom_type_script = "uid://5octqlf4ohel"
  347. [node name="YoshiHatch" type="AudioStreamPlayer2D" parent="."]
  348. stream = ExtResource("4_ljpfp")
  349. bus = &"SFX"
  350. [node name="ResourceSetter" type="Node" parent="YoshiHatch" node_paths=PackedStringArray("node_to_affect")]
  351. script = ExtResource("6_swra8")
  352. node_to_affect = NodePath("..")
  353. property_name = "stream"
  354. themed_resource = SubResource("Resource_2jlbu")
  355. metadata/_custom_type_script = "uid://cq6f682453q6o"
  356. [node name="YoshiSFX" type="AudioStreamPlayer2D" parent="."]
  357. stream = ExtResource("5_ovuko")
  358. bus = &"SFX"
  359. [node name="ResourceSetter" type="Node" parent="YoshiSFX" node_paths=PackedStringArray("node_to_affect")]
  360. script = ExtResource("6_swra8")
  361. node_to_affect = NodePath("..")
  362. property_name = "stream"
  363. themed_resource = SubResource("Resource_peoeq")
  364. metadata/_custom_type_script = "uid://cq6f682453q6o"