Clock.tscn 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. [gd_scene load_steps=12 format=2]
  2. [ext_resource path="res://scripts/Clock.gd" type="Script" id=1]
  3. [ext_resource path="res://exported_models/clock_face.obj" type="ArrayMesh" id=2]
  4. [ext_resource path="res://exported_models/clock_marks.obj" type="ArrayMesh" id=3]
  5. [ext_resource path="res://human_robemat.tres" type="Material" id=4]
  6. [ext_resource path="res://exported_models/clock_shaft.obj" type="ArrayMesh" id=5]
  7. [ext_resource path="res://exported_models/clock_arrow.obj" type="ArrayMesh" id=6]
  8. [ext_resource path="res://scripts/EPlace.gd" type="Script" id=7]
  9. [ext_resource path="res://message.ogg" type="AudioStream" id=8]
  10. [sub_resource type="SpatialMaterial" id=1]
  11. albedo_color = Color( 0, 0, 0, 1 )
  12. emission_enabled = true
  13. emission = Color( 0.631373, 0.54902, 0.266667, 1 )
  14. emission_energy = 3.0
  15. emission_operator = 0
  16. emission_on_uv2 = false
  17. [sub_resource type="SphereShape" id=2]
  18. [sub_resource type="SpatialMaterial" id=3]
  19. albedo_color = Color( 0.333333, 0, 0, 1 )
  20. [node name="Clock" type="Spatial"]
  21. script = ExtResource( 1 )
  22. [node name="Spatial" type="Spatial" parent="."]
  23. transform = Transform( 0.1, 0, 0, 0, -4.37114e-09, 0.1, 0, -0.1, -4.37114e-09, 0.85, -0.75, 1.6 )
  24. [node name="OmniLight" type="OmniLight" parent="Spatial"]
  25. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -13, 30 )
  26. visible = false
  27. editor_only = true
  28. omni_range = 31.7067
  29. [node name="OmniLight2" type="OmniLight" parent="Spatial"]
  30. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5.05298, 16.228, 30 )
  31. visible = false
  32. editor_only = true
  33. omni_range = 31.7067
  34. [node name="face" type="MeshInstance" parent="Spatial"]
  35. transform = Transform( 1, 0, 0, 0, 1, 3.55271e-15, 0, -3.55271e-15, 1, 0, 0, 0 )
  36. mesh = ExtResource( 2 )
  37. material/0 = SubResource( 1 )
  38. [node name="marks" type="MeshInstance" parent="Spatial"]
  39. mesh = ExtResource( 3 )
  40. material/0 = ExtResource( 4 )
  41. [node name="shaft" type="MeshInstance" parent="Spatial"]
  42. mesh = ExtResource( 5 )
  43. material/0 = ExtResource( 4 )
  44. [node name="Light1" type="OmniLight" parent="Spatial"]
  45. transform = Transform( 10, 0, 0, 0, 10, 5.11591e-13, 0, -5.11591e-13, 10, -5.60604, 14.1179, 7.11677 )
  46. light_color = Color( 0.8, 0.686275, 0.0705882, 1 )
  47. omni_range = 0.3
  48. [node name="Light2" type="OmniLight" parent="Spatial"]
  49. transform = Transform( 10, 0, 0, 0, 10, 5.68434e-13, 0, -5.68434e-13, 10, -11.0657, 14.1179, 7.11677 )
  50. light_color = Color( 0.8, 0.686275, 0.0705882, 1 )
  51. omni_range = 0.3
  52. [node name="Clock" type="StaticBody" parent="Spatial"]
  53. transform = Transform( 10, 0, 0, 0, -4.37114e-07, -10, 0, 10, -4.37114e-07, -8.5, 16, 7.5 )
  54. collision_layer = 5
  55. [node name="CollisionShape" type="CollisionShape" parent="Spatial/Clock"]
  56. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 0.5, 0, 0, 0 )
  57. shape = SubResource( 2 )
  58. [node name="arrow_pivot" type="Spatial" parent="."]
  59. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.25 )
  60. [node name="arrow" type="MeshInstance" parent="arrow_pivot"]
  61. transform = Transform( 0.1, 0, 0, 0, -4.37114e-09, 0.1, 0, -0.1, -4.37114e-09, 0.85, -0.75, 1.35 )
  62. mesh = ExtResource( 6 )
  63. material/0 = SubResource( 3 )
  64. [node name="EPlace" type="Spatial" parent="."]
  65. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.520048, -0.371158, 0.723466 )
  66. script = ExtResource( 7 )
  67. [node name="CameraPlace" type="Spatial" parent="."]
  68. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.647344, 2.09593 )
  69. [node name="Sound" type="AudioStreamPlayer3D" parent="."]
  70. stream = ExtResource( 8 )
  71. attenuation_model = 1
  72. unit_db = -5.0
  73. unit_size = 0.1
  74. max_db = 1.0
  75. pitch_scale = 0.8