chocolate.tscn 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. [gd_scene load_steps=12 format=3 uid="uid://ba3gf7iy3mxbq"]
  2. [ext_resource type="Script" path="res://component/entity/collectibles/chocolate/chocolate.gd" id="1_wk24q"]
  3. [ext_resource type="AudioStream" uid="uid://h5pmhfnb4wus" path="res://component/entity/collectibles/chocolate/pickupChocolate.wav" id="2_ecvab"]
  4. [sub_resource type="Animation" id="Animation_cfly2"]
  5. length = 0.001
  6. tracks/0/type = "rotation_3d"
  7. tracks/0/imported = false
  8. tracks/0/enabled = true
  9. tracks/0/path = NodePath(".")
  10. tracks/0/interp = 1
  11. tracks/0/loop_wrap = true
  12. tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1)
  13. [sub_resource type="Animation" id="Animation_d6qxv"]
  14. resource_name = "collection"
  15. length = 2.0
  16. step = 0.25
  17. tracks/0/type = "rotation_3d"
  18. tracks/0/imported = false
  19. tracks/0/enabled = true
  20. tracks/0/path = NodePath(".")
  21. tracks/0/interp = 1
  22. tracks/0/loop_wrap = true
  23. tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1, 0.5, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, -1, 1.5, 1, 0, -1, 0, 0, 2, 1, 0, 0, 0, 1)
  24. tracks/1/type = "scale_3d"
  25. tracks/1/imported = false
  26. tracks/1/enabled = true
  27. tracks/1/path = NodePath(".")
  28. tracks/1/interp = 2
  29. tracks/1/loop_wrap = true
  30. tracks/1/keys = PackedFloat32Array(1, 1, 1, 1, 1, 2, 1, 0.003, 0.003, 0.003)
  31. tracks/2/type = "position_3d"
  32. tracks/2/imported = false
  33. tracks/2/enabled = true
  34. tracks/2/path = NodePath(".")
  35. tracks/2/interp = 2
  36. tracks/2/loop_wrap = true
  37. tracks/2/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1, 1, 0, 1.5, 0, 2, 1, 0, 0, 0)
  38. [sub_resource type="Animation" id="Animation_0f754"]
  39. resource_name = "idle"
  40. length = 4.0
  41. loop_mode = 1
  42. step = 1.0
  43. tracks/0/type = "rotation_3d"
  44. tracks/0/imported = false
  45. tracks/0/enabled = true
  46. tracks/0/path = NodePath(".")
  47. tracks/0/interp = 1
  48. tracks/0/loop_wrap = true
  49. tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1, 2, 1, 0, 1, 0, 0, 4, 1, 0, 0, 0, -1)
  50. tracks/1/type = "position_3d"
  51. tracks/1/imported = false
  52. tracks/1/enabled = true
  53. tracks/1/path = NodePath(".")
  54. tracks/1/interp = 2
  55. tracks/1/loop_wrap = true
  56. tracks/1/keys = PackedFloat32Array(0, 1, 0, 0, 0, 2, 1, 0, 0.25, 0)
  57. [sub_resource type="AnimationLibrary" id="AnimationLibrary_djjxd"]
  58. _data = {
  59. "RESET": SubResource("Animation_cfly2"),
  60. "collection": SubResource("Animation_d6qxv"),
  61. "idle": SubResource("Animation_0f754")
  62. }
  63. [sub_resource type="BoxShape3D" id="BoxShape3D_cro6x"]
  64. size = Vector3(1, 1, 0.325)
  65. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_px4jl"]
  66. albedo_color = Color(0.294006, 0.133118, 0.019403, 1)
  67. metallic_specular = 0.21
  68. [sub_resource type="BoxMesh" id="BoxMesh_c10ab"]
  69. material = SubResource("StandardMaterial3D_px4jl")
  70. size = Vector3(0.8, 1, 0.2)
  71. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ds5yo"]
  72. albedo_color = Color(1, 0.816667, 0, 1)
  73. metallic_specular = 0.66
  74. [sub_resource type="BoxMesh" id="BoxMesh_ialpe"]
  75. material = SubResource("StandardMaterial3D_ds5yo")
  76. size = Vector3(0.85, 0.8, 0.25)
  77. [node name="Chocolate" type="Node3D"]
  78. script = ExtResource("1_wk24q")
  79. [node name="ChocolateAnimation" type="AnimationPlayer" parent="."]
  80. root_node = NodePath("../ChocolateTablet")
  81. libraries = {
  82. "": SubResource("AnimationLibrary_djjxd")
  83. }
  84. autoplay = "idle"
  85. [node name="ChocolateTablet" type="Area3D" parent="."]
  86. collision_layer = 32
  87. collision_mask = 10
  88. [node name="ChocolateCollisionShape3D" type="CollisionShape3D" parent="ChocolateTablet"]
  89. transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, 0)
  90. shape = SubResource("BoxShape3D_cro6x")
  91. [node name="ChocolateMesh" type="MeshInstance3D" parent="ChocolateTablet"]
  92. mesh = SubResource("BoxMesh_c10ab")
  93. [node name="PaperMesh" type="MeshInstance3D" parent="ChocolateTablet"]
  94. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
  95. mesh = SubResource("BoxMesh_ialpe")
  96. [node name="ChocolatePickupSound" type="AudioStreamPlayer3D" parent="."]
  97. visible = false
  98. stream = ExtResource("2_ecvab")
  99. [connection signal="body_entered" from="ChocolateTablet" to="." method="_on_chocolate_tablet_body_entered"]