Start.tscn 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. [gd_scene load_steps=15 format=2]
  2. [ext_resource path="res://Scenes/Maps/Map-1/Ground.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://Scenes/Monteri.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://Scenes/LightingEnvironment.tres" type="Environment" id=3]
  5. [ext_resource path="res://Scenes/Status/Status.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://Scenes/Camera.gd" type="Script" id=5]
  7. [ext_resource path="res://Scenes/Start.gd" type="Script" id=6]
  8. [ext_resource path="res://Scenes/VehicleController/F60.wav" type="AudioStream" id=7]
  9. [ext_resource path="res://Scenes/Player.gd" type="Script" id=8]
  10. [ext_resource path="res://Scenes/VehicleController/F30.wav" type="AudioStream" id=9]
  11. [ext_resource path="res://Scenes/VehicleController/F110.wav" type="AudioStream" id=10]
  12. [ext_resource path="res://Scenes/MotorSoundController.gd" type="Script" id=11]
  13. [sub_resource type="BoxShape" id=1]
  14. extents = Vector3( 250, 80, 10 )
  15. [sub_resource type="CylinderShape" id=2]
  16. radius = 0.869148
  17. height = 0.312566
  18. [sub_resource type="BoxShape" id=3]
  19. extents = Vector3( 0.505006, 0.150034, 0.482861 )
  20. [node name="Start" type="Node"]
  21. script = ExtResource( 6 )
  22. [node name="Player" type="Node" parent="."]
  23. script = ExtResource( 8 )
  24. [node name="Status" parent="." instance=ExtResource( 4 )]
  25. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  26. environment = ExtResource( 3 )
  27. [node name="DirectionalLight" type="DirectionalLight" parent="."]
  28. transform = Transform( 0.987557, -0.153009, 0.0363166, 0, 0.230934, 0.972969, -0.15726, -0.960863, 0.228061, 12.6107, 337.858, 79.1927 )
  29. shadow_enabled = true
  30. [node name="Ground" parent="." instance=ExtResource( 1 )]
  31. [node name="GroundLimits" type="StaticBody" parent="."]
  32. [node name="CollisionShape" type="CollisionShape" parent="GroundLimits"]
  33. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 260 )
  34. shape = SubResource( 1 )
  35. [node name="CollisionShape2" type="CollisionShape" parent="GroundLimits"]
  36. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -260 )
  37. shape = SubResource( 1 )
  38. [node name="CollisionShape3" type="CollisionShape" parent="GroundLimits"]
  39. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 260, 0, 0 )
  40. shape = SubResource( 1 )
  41. [node name="CollisionShape4" type="CollisionShape" parent="GroundLimits"]
  42. transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, -260, 0, 0 )
  43. shape = SubResource( 1 )
  44. [node name="Camera" type="Camera" parent="."]
  45. transform = Transform( -0.465637, 0.205813, -0.860711, 0, 0.972582, 0.232564, 0.884976, 0.10829, -0.452869, -4.7705, 1.66247, -2.73375 )
  46. fov = 40.0
  47. near = 0.2
  48. far = 900.0
  49. script = ExtResource( 5 )
  50. target_node = NodePath("../Monteri/CameraTarget")
  51. vehicle_controller_node = NodePath("../Monteri")
  52. [node name="Monteri" parent="." instance=ExtResource( 2 )]
  53. [node name="CameraTarget" type="Spatial" parent="Monteri"]
  54. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.872167, 0 )
  55. [node name="CollisionShapeFront" type="CollisionShape" parent="Monteri"]
  56. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0387166, -1.51218 )
  57. shape = SubResource( 2 )
  58. [node name="CollisionShapeTop" type="CollisionShape" parent="Monteri"]
  59. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.763991, 0.559802 )
  60. shape = SubResource( 3 )
  61. [node name="MotorSoundController" type="Node" parent="Monteri"]
  62. script = ExtResource( 11 )
  63. f1_node = NodePath("../F1")
  64. f2_node = NodePath("../F2")
  65. f3_node = NodePath("../F3")
  66. [node name="F1" type="AudioStreamPlayer3D" parent="Monteri"]
  67. stream = ExtResource( 9 )
  68. attenuation_model = 3
  69. bus = "Low"
  70. [node name="F2" type="AudioStreamPlayer3D" parent="Monteri"]
  71. stream = ExtResource( 7 )
  72. attenuation_model = 3
  73. bus = "Dominant"
  74. [node name="F3" type="AudioStreamPlayer3D" parent="Monteri"]
  75. stream = ExtResource( 10 )
  76. attenuation_model = 3
  77. bus = "High"
  78. [connection signal="query_driver" from="Monteri" to="Player" method="_on_Monteri_query_driver"]
  79. [connection signal="update_motor_sound" from="Monteri" to="Monteri/MotorSoundController" method="_on_Monteri_update_motor_sound"]