chocolate.tscn 3.7 KB

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