chocolate.tscn 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. [sub_resource type="AnimationLibrary" id="AnimationLibrary_djjxd"]
  50. _data = {
  51. "RESET": SubResource("Animation_cfly2"),
  52. "collection": SubResource("Animation_d6qxv"),
  53. "idle": SubResource("Animation_0f754")
  54. }
  55. [sub_resource type="BoxShape3D" id="BoxShape3D_cro6x"]
  56. size = Vector3(1, 1, 0.325)
  57. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_px4jl"]
  58. albedo_color = Color(0.294006, 0.133118, 0.019403, 1)
  59. metallic_specular = 0.21
  60. [sub_resource type="BoxMesh" id="BoxMesh_c10ab"]
  61. material = SubResource("StandardMaterial3D_px4jl")
  62. size = Vector3(0.8, 1, 0.2)
  63. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ds5yo"]
  64. albedo_color = Color(1, 0.816667, 0, 1)
  65. metallic_specular = 0.66
  66. [sub_resource type="BoxMesh" id="BoxMesh_ialpe"]
  67. material = SubResource("StandardMaterial3D_ds5yo")
  68. size = Vector3(0.85, 0.8, 0.25)
  69. [node name="Chocolate" type="Node3D"]
  70. script = ExtResource("1_wk24q")
  71. [node name="ChocolateAnimation" type="AnimationPlayer" parent="."]
  72. root_node = NodePath("../ChocolateTablet")
  73. libraries = {
  74. "": SubResource("AnimationLibrary_djjxd")
  75. }
  76. autoplay = "idle"
  77. [node name="ChocolateTablet" type="Area3D" parent="."]
  78. collision_layer = 32
  79. collision_mask = 10
  80. [node name="ChocolateCollisionShape3D" type="CollisionShape3D" parent="ChocolateTablet"]
  81. transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, 0)
  82. shape = SubResource("BoxShape3D_cro6x")
  83. [node name="ChocolateMesh" type="MeshInstance3D" parent="ChocolateTablet"]
  84. mesh = SubResource("BoxMesh_c10ab")
  85. [node name="PaperMesh" type="MeshInstance3D" parent="ChocolateTablet"]
  86. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
  87. mesh = SubResource("BoxMesh_ialpe")
  88. [connection signal="body_entered" from="ChocolateTablet" to="." method="_on_chocolate_tablet_body_entered"]