fish.tscn 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [gd_scene load_steps=7 format=3 uid="uid://cdvb2hjpjbfit"]
  2. [ext_resource type="Script" path="res://scenes/fish/fish.gd" id="1_q6o8j"]
  3. [ext_resource type="Texture2D" uid="uid://b50p4cw37wjyp" path="res://sprites/fish/png/fish.png" id="2_eij25"]
  4. [sub_resource type="ShaderMaterial" id="ShaderMaterial_e1lpj"]
  5. [sub_resource type="Animation" id="Animation_dcm26"]
  6. resource_name = "Collected"
  7. length = 0.5
  8. tracks/0/type = "value"
  9. tracks/0/imported = false
  10. tracks/0/enabled = true
  11. tracks/0/path = NodePath(".:scale")
  12. tracks/0/interp = 1
  13. tracks/0/loop_wrap = true
  14. tracks/0/keys = {
  15. "times": PackedFloat32Array(0, 0.5),
  16. "transitions": PackedFloat32Array(1, 1),
  17. "update": 0,
  18. "values": [Vector2(1, 1), Vector2(0.05, 0.1)]
  19. }
  20. tracks/1/type = "method"
  21. tracks/1/imported = false
  22. tracks/1/enabled = true
  23. tracks/1/path = NodePath(".")
  24. tracks/1/interp = 1
  25. tracks/1/loop_wrap = true
  26. tracks/1/keys = {
  27. "times": PackedFloat32Array(0.5),
  28. "transitions": PackedFloat32Array(1),
  29. "values": [{
  30. "args": [],
  31. "method": &"queue_free"
  32. }]
  33. }
  34. [sub_resource type="Animation" id="Animation_5lsts"]
  35. length = 0.001
  36. tracks/0/type = "value"
  37. tracks/0/imported = false
  38. tracks/0/enabled = true
  39. tracks/0/path = NodePath(".:scale")
  40. tracks/0/interp = 1
  41. tracks/0/loop_wrap = true
  42. tracks/0/keys = {
  43. "times": PackedFloat32Array(0),
  44. "transitions": PackedFloat32Array(1),
  45. "update": 0,
  46. "values": [Vector2(1, 1)]
  47. }
  48. [sub_resource type="AnimationLibrary" id="AnimationLibrary_jmv5s"]
  49. _data = {
  50. "Collected": SubResource("Animation_dcm26"),
  51. "RESET": SubResource("Animation_5lsts")
  52. }
  53. [node name="fish" type="Area2D"]
  54. collision_layer = 2
  55. collision_mask = 2
  56. script = ExtResource("1_q6o8j")
  57. metadata/_edit_group_ = true
  58. [node name="Sprite2D" type="Sprite2D" parent="."]
  59. material = SubResource("ShaderMaterial_e1lpj")
  60. scale = Vector2(0.5, 0.5)
  61. texture = ExtResource("2_eij25")
  62. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  63. libraries = {
  64. "": SubResource("AnimationLibrary_jmv5s")
  65. }
  66. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
  67. scale = Vector2(0.5, 0.5)
  68. polygon = PackedVector2Array(-2, -43, 4, -38, 5, -25, 21, -13, 33, 1, 62, -10, 68, -5, 72, 7, 71.6, 19, 68, 29, 59, 36, 38, 27, 30, 19, 15, 24, -3, 26, 2, 35, 0, 42, -5, 47, -16, 47, -23, 44, -32, 35, -38.3, 23, -63, 10, -73, -3, -63, -16, -54, -25, -36, -33.3, -36, -44, -33, -48)