Start.tscn 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. [gd_scene load_steps=26 format=3 uid="uid://bmddi06hputur"]
  2. [ext_resource type="Script" path="res://Scenes/Start.gd" id="1_gi87r"]
  3. [ext_resource type="Script" path="res://Scenes/Player.gd" id="2_g27tf"]
  4. [ext_resource type="Script" path="res://Scenes/Camera.gd" id="3_wjqso"]
  5. [ext_resource type="PackedScene" uid="uid://jv4wm4mlhwqf" path="res://Scenes/dashboard.tscn" id="4_a1ewv"]
  6. [ext_resource type="Texture2D" uid="uid://df3yv0munac4v" path="res://Scenes/RevCounterNeedle.png" id="5_jjaii"]
  7. [ext_resource type="PackedScene" uid="uid://b4p4hvb8ja73m" path="res://Scenes/Monteri.tscn" id="5_x1q82"]
  8. [ext_resource type="PackedScene" uid="uid://bhqt5d5hg31xl" path="res://Scenes/Status/Status.tscn" id="6_limtv"]
  9. [ext_resource type="PackedScene" uid="uid://bdasdyv31ad2r" path="res://Scenes/Maps/Map-1/ground.tscn" id="6_w8p8v"]
  10. [ext_resource type="FontFile" uid="uid://p28emkvy8p7f" path="res://Scenes/Fonts/noto_sans_ui_regular.ttf" id="6_yb40h"]
  11. [ext_resource type="PackedScene" uid="uid://cvurpj231f18r" path="res://Scenes/sound_emitter.tscn" id="7_8r1bc"]
  12. [ext_resource type="AudioStream" uid="uid://coavl778ify5y" path="res://Scenes/CarModels/Monteri-Body/On.wav" id="8_5x8ta"]
  13. [ext_resource type="AudioStream" uid="uid://6alyab3du2n5" path="res://Scenes/CarModels/Monteri-Body/Off.wav" id="9_dqhyg"]
  14. [ext_resource type="PackedScene" uid="uid://dgutqoukyvi6l" path="res://Scenes/Maps/Map-1/GuardRails/barrier.tscn" id="9_oseuy"]
  15. [ext_resource type="PackedScene" uid="uid://dq0ak78bjfpfr" path="res://Scenes/Maps/ArcBridge/arc_bridge.tscn" id="10_3acnn"]
  16. [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_87l1k"]
  17. sky_top_color = Color(0, 0.619608, 1, 1)
  18. sky_horizon_color = Color(0.96, 0.973333, 1, 1)
  19. sky_curve = 0.0349888
  20. ground_bottom_color = Color(0.2, 0.168627, 0.129412, 1)
  21. ground_horizon_color = Color(1, 1, 1, 1)
  22. ground_curve = 0.393966
  23. sun_curve = 0.270375
  24. [sub_resource type="Sky" id="Sky_wbhdn"]
  25. sky_material = SubResource("ProceduralSkyMaterial_87l1k")
  26. [sub_resource type="Environment" id="Environment_e3rv3"]
  27. background_mode = 2
  28. sky = SubResource("Sky_wbhdn")
  29. ambient_light_color = Color(0.501961, 0.501961, 0.501961, 1)
  30. ambient_light_sky_contribution = 0.1
  31. ambient_light_energy = 0.2
  32. tonemap_mode = 3
  33. fog_light_color = Color(0, 0.619608, 1, 1)
  34. fog_sky_affect = 0.0
  35. volumetric_fog_density = 0.02
  36. volumetric_fog_anisotropy = -0.2
  37. volumetric_fog_sky_affect = 0.0
  38. [sub_resource type="BoxShape3D" id="BoxShape3D_y5xuo"]
  39. size = Vector3(1000, 100, 10)
  40. [sub_resource type="BoxShape3D" id="BoxShape3D_4xdyb"]
  41. size = Vector3(1000, 100, 10)
  42. [sub_resource type="BoxShape3D" id="BoxShape3D_q02r8"]
  43. size = Vector3(10, 100, 1000)
  44. [sub_resource type="BoxShape3D" id="BoxShape3D_37nhg"]
  45. custom_solver_bias = 1.0
  46. size = Vector3(10, 100, 1000)
  47. [sub_resource type="BoxShape3D" id="BoxShape3D_x1cas"]
  48. size = Vector3(1.8, 0.2, 0.5)
  49. [sub_resource type="BoxShape3D" id="BoxShape3D_ur7gn"]
  50. size = Vector3(1.8, 0.5, 0.2)
  51. [sub_resource type="BoxShape3D" id="BoxShape3D_5lcbe"]
  52. size = Vector3(2, 0.3, 2)
  53. [sub_resource type="BoxShape3D" id="BoxShape3D_jikxc"]
  54. size = Vector3(1, 0.3, 1)
  55. [node name="Start" type="Node"]
  56. script = ExtResource("1_gi87r")
  57. player_node = NodePath("Player")
  58. [node name="Player" type="Node" parent="."]
  59. script = ExtResource("2_g27tf")
  60. car_node = NodePath("../Monteri")
  61. [node name="Status" parent="." instance=ExtResource("6_limtv")]
  62. [node name="Dashboard" parent="." instance=ExtResource("4_a1ewv")]
  63. [node name="Needle" type="TextureRect" parent="Dashboard"]
  64. layout_mode = 1
  65. anchors_preset = 3
  66. anchor_left = 1.0
  67. anchor_top = 1.0
  68. anchor_right = 1.0
  69. anchor_bottom = 1.0
  70. offset_left = -256.0
  71. offset_top = -256.0
  72. grow_horizontal = 0
  73. grow_vertical = 0
  74. pivot_offset = Vector2(128, 128)
  75. texture = ExtResource("5_jjaii")
  76. [node name="Gear" type="Label" parent="Dashboard"]
  77. layout_mode = 1
  78. anchors_preset = 3
  79. anchor_left = 1.0
  80. anchor_top = 1.0
  81. anchor_right = 1.0
  82. anchor_bottom = 1.0
  83. offset_left = -78.0
  84. offset_top = -117.0
  85. offset_right = -38.0
  86. offset_bottom = -13.0
  87. grow_horizontal = 0
  88. grow_vertical = 0
  89. theme_override_fonts/font = ExtResource("6_yb40h")
  90. theme_override_font_sizes/font_size = 82
  91. text = "0"
  92. [node name="Speed" type="Label" parent="Dashboard"]
  93. layout_mode = 1
  94. anchors_preset = 3
  95. anchor_left = 1.0
  96. anchor_top = 1.0
  97. anchor_right = 1.0
  98. anchor_bottom = 1.0
  99. offset_left = -55.0
  100. offset_top = -24.0
  101. offset_right = -15.0
  102. offset_bottom = 2.0
  103. grow_horizontal = 0
  104. grow_vertical = 0
  105. text = "999"
  106. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  107. transform = Transform3D(-0.986286, 0.10609, -0.126433, 0, 0.766045, 0.642788, 0.165047, 0.633972, -0.755538, -20.3359, 103.738, -121.523)
  108. light_energy = 0.7
  109. light_volumetric_fog_energy = 3.0
  110. shadow_enabled = true
  111. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  112. environment = SubResource("Environment_e3rv3")
  113. [node name="Camera" type="Camera3D" parent="."]
  114. fov = 40.0
  115. script = ExtResource("3_wjqso")
  116. damping = 3.0
  117. vehicle_node = NodePath("../Monteri")
  118. needle_node = NodePath("../Dashboard/Needle")
  119. gear_node = NodePath("../Dashboard/Gear")
  120. speed_node = NodePath("../Dashboard/Speed")
  121. [node name="GroundLimits" type="StaticBody3D" parent="."]
  122. [node name="CollisionShape3D" type="CollisionShape3D" parent="GroundLimits"]
  123. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 505)
  124. shape = SubResource("BoxShape3D_y5xuo")
  125. [node name="CollisionShape3D2" type="CollisionShape3D" parent="GroundLimits"]
  126. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -505)
  127. shape = SubResource("BoxShape3D_4xdyb")
  128. [node name="CollisionShape3D3" type="CollisionShape3D" parent="GroundLimits"]
  129. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 505, 0, 0)
  130. shape = SubResource("BoxShape3D_q02r8")
  131. [node name="CollisionShape3D4" type="CollisionShape3D" parent="GroundLimits"]
  132. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -505, 0, 0)
  133. shape = SubResource("BoxShape3D_37nhg")
  134. [node name="Ground" parent="." instance=ExtResource("6_w8p8v")]
  135. [node name="Barrier" parent="." instance=ExtResource("9_oseuy")]
  136. [node name="Monteri" parent="." instance=ExtResource("5_x1q82")]
  137. transform = Transform3D(-0.0446655, 0, -0.999002, 0, 1, 0, 0.999002, 0, -0.0446655, 0, 0.103202, 47.6751)
  138. rev_normalized_max = 0.7
  139. [node name="CameraTarget" type="Node3D" parent="Monteri"]
  140. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.87, 0)
  141. [node name="CameraOrigin" type="Node3D" parent="Monteri"]
  142. transform = Transform3D(1, 0, 0, 0, 0.984808, 0.173648, 0, -0.173648, 0.984808, 0, 0.87, 8)
  143. [node name="CollisionShapeFront" type="CollisionShape3D" parent="Monteri"]
  144. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2)
  145. shape = SubResource("BoxShape3D_x1cas")
  146. [node name="CollisionShapeRear" type="CollisionShape3D" parent="Monteri"]
  147. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 2)
  148. shape = SubResource("BoxShape3D_ur7gn")
  149. [node name="CollisionShapeBody" type="CollisionShape3D" parent="Monteri"]
  150. shape = SubResource("BoxShape3D_5lcbe")
  151. [node name="CollisionShapeTop" type="CollisionShape3D" parent="Monteri"]
  152. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.77, 0.56)
  153. shape = SubResource("BoxShape3D_jikxc")
  154. [node name="SoundEmitter" parent="Monteri" instance=ExtResource("7_8r1bc")]
  155. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0171307, 2.20283)
  156. [node name="Acceleration" type="AudioStreamPlayer3D" parent="Monteri/SoundEmitter"]
  157. stream = ExtResource("8_5x8ta")
  158. bus = &"On"
  159. [node name="Deceleration" type="AudioStreamPlayer3D" parent="Monteri/SoundEmitter"]
  160. stream = ExtResource("9_dqhyg")
  161. bus = &"Off"
  162. [node name="ArcBridge" parent="." instance=ExtResource("10_3acnn")]
  163. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21, 0, -64)
  164. [node name="ReflectionProbe" type="ReflectionProbe" parent="."]
  165. size = Vector3(500, 100, 500)
  166. ambient_mode = 0
  167. [connection signal="query_driver" from="Monteri" to="Player" method="_on_monteri_query_driver"]