chocolate.tscn 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [gd_scene load_steps=10 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="BoxShape3D" id="BoxShape3D_cro6x"]
  4. size = Vector3(1, 1, 0.325)
  5. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_px4jl"]
  6. albedo_color = Color(0.294006, 0.133118, 0.019403, 1)
  7. metallic_specular = 0.21
  8. [sub_resource type="BoxMesh" id="BoxMesh_c10ab"]
  9. material = SubResource("StandardMaterial3D_px4jl")
  10. size = Vector3(0.8, 1, 0.2)
  11. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ds5yo"]
  12. albedo_color = Color(1, 0.816667, 0, 1)
  13. metallic_specular = 0.66
  14. [sub_resource type="BoxMesh" id="BoxMesh_ialpe"]
  15. material = SubResource("StandardMaterial3D_ds5yo")
  16. size = Vector3(0.85, 0.8, 0.25)
  17. [sub_resource type="Animation" id="Animation_0f754"]
  18. resource_name = "idle"
  19. length = 4.0
  20. loop_mode = 1
  21. tracks/0/type = "rotation_3d"
  22. tracks/0/imported = false
  23. tracks/0/enabled = true
  24. tracks/0/path = NodePath(".")
  25. tracks/0/interp = 1
  26. tracks/0/loop_wrap = true
  27. tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1, 2, 1, 0, 1, 0, 0, 4, 1, 0, 0, 0, -1)
  28. [sub_resource type="Animation" id="Animation_cfly2"]
  29. length = 0.001
  30. tracks/0/type = "rotation_3d"
  31. tracks/0/imported = false
  32. tracks/0/enabled = true
  33. tracks/0/path = NodePath(".")
  34. tracks/0/interp = 1
  35. tracks/0/loop_wrap = true
  36. tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1)
  37. [sub_resource type="AnimationLibrary" id="AnimationLibrary_djjxd"]
  38. _data = {
  39. "RESET": SubResource("Animation_cfly2"),
  40. "idle": SubResource("Animation_0f754")
  41. }
  42. [node name="ChocolateTablet" type="Area3D"]
  43. collision_layer = 32
  44. collision_mask = 10
  45. script = ExtResource("1_wk24q")
  46. [node name="ChocolateCollisionShape3D" type="CollisionShape3D" parent="."]
  47. transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, 0)
  48. shape = SubResource("BoxShape3D_cro6x")
  49. [node name="ChocolateMesh" type="MeshInstance3D" parent="."]
  50. mesh = SubResource("BoxMesh_c10ab")
  51. [node name="PaperMesh" type="MeshInstance3D" parent="."]
  52. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
  53. mesh = SubResource("BoxMesh_ialpe")
  54. [node name="ChocolateAnimation" type="AnimationPlayer" parent="."]
  55. libraries = {
  56. "": SubResource("AnimationLibrary_djjxd")
  57. }
  58. autoplay = "idle"
  59. [connection signal="body_entered" from="." to="." method="_on_body_entered"]