init public repo

This commit is contained in:
Lurkars
2019-07-23 19:49:04 +02:00
commit d6a3a59d2d
446 changed files with 185897 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scripts/game/game.gd" type="Script" id=1]
[ext_resource path="res://scripts/game/route.gd" type="Script" id=2]
[node name="game" type="Spatial"]
script = ExtResource( 1 )
[node name="route" type="Spatial" parent="."]
script = ExtResource( 2 )
[node name="players" type="Spatial" parent="."]
[node name="sun" type="DirectionalLight" parent="."]
transform = Transform( 0.324827, 0.775291, 0.541675, -0.754407, -0.133022, 0.642788, 0.570402, -0.617438, 0.541675, 0, 0, 0 )
visible = false
light_color = Color( 0.921569, 0.741176, 0.368627, 1 )
directional_shadow_mode = 1
directional_shadow_max_distance = 25.0
+20
View File
@@ -0,0 +1,20 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://resources/lanes/start/1.tres" type="Curve3D" id=1]
[ext_resource path="res://resources/lanes/start/2.tres" type="Curve3D" id=2]
[ext_resource path="res://resources/lanes/start/3.tres" type="Curve3D" id=3]
[ext_resource path="res://resources/lanes/start/4.tres" type="Curve3D" id=4]
[node name="lanes" type="Spatial"]
[node name="1" type="Path" parent="."]
curve = ExtResource( 1 )
[node name="2" type="Path" parent="."]
curve = ExtResource( 2 )
[node name="3" type="Path" parent="."]
curve = ExtResource( 3 )
[node name="4" type="Path" parent="."]
curve = ExtResource( 4 )
+29
View File
@@ -0,0 +1,29 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/icons/return.png" type="Texture" id=2]
[node name="menu" type="Panel"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -472.5
margin_top = -234.5
margin_right = 472.5
margin_bottom = 234.5
grow_horizontal = 2
grow_vertical = 2
rect_clip_content = true
size_flags_horizontal = 6
size_flags_vertical = 6
[node name="back" type="Button" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -56.0
margin_right = 132.0
custom_fonts/font = ExtResource( 1 )
text = "BACK"
icon = ExtResource( 2 )
flat = true
+95
View File
@@ -0,0 +1,95 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/direct_host.gd" type="Script" id=2]
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
[node name="direct_host_menu" type="Control"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -512.0
margin_top = -300.0
margin_right = 512.0
margin_bottom = 300.0
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -217.5
margin_top = -53.5
margin_right = 217.5
margin_bottom = 53.5
grow_horizontal = 2
grow_vertical = 2
[node name="GridContainer" type="GridContainer" parent="menu"]
margin_left = 16.0
margin_top = 12.0
margin_right = 429.0
margin_bottom = 52.0
columns = 3
[node name="port_label" type="Label" parent="menu/GridContainer"]
margin_top = 6.0
margin_right = 65.0
margin_bottom = 33.0
text = "PORT"
[node name="port" type="SpinBox" parent="menu/GridContainer"]
margin_left = 69.0
margin_right = 266.0
margin_bottom = 40.0
focus_neighbour_right = NodePath("../bots")
focus_neighbour_bottom = NodePath("../../back")
size_flags_horizontal = 3
max_value = 65535.0
value = 8128.0
align = 2
[node name="bots" type="CheckButton" parent="menu/GridContainer"]
margin_left = 270.0
margin_right = 413.0
margin_bottom = 40.0
focus_neighbour_left = NodePath("../port")
focus_neighbour_bottom = NodePath("../../host")
text = "BOTS"
[node name="host" type="Button" parent="menu"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -143.0
margin_top = -56.0001
grow_horizontal = 0
grow_vertical = 0
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
focus_neighbour_left = NodePath("../back")
focus_neighbour_top = NodePath("../GridContainer/bots")
custom_fonts/font = ExtResource( 3 )
text = "HOST"
icon = ExtResource( 4 )
flat = true
[node name="back" type="Button" parent="menu"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -56.0
margin_right = 132.0
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
focus_neighbour_top = NodePath("../GridContainer/port")
focus_neighbour_right = NodePath("../host")
custom_fonts/font = ExtResource( 3 )
text = "BACK"
icon = ExtResource( 5 )
flat = true
[connection signal="pressed" from="menu/host" to="." method="_on_host_pressed"]
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
+106
View File
@@ -0,0 +1,106 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/direct_join.gd" type="Script" id=2]
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
[node name="direct_join_menu" type="Control"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -512.0
margin_top = -300.0
margin_right = 512.0
margin_bottom = 300.0
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -217.5
margin_top = -73.5
margin_right = 217.5
margin_bottom = 73.5
grow_horizontal = 2
grow_vertical = 2
[node name="GridContainer" type="GridContainer" parent="menu"]
margin_left = 18.0
margin_top = 11.0
margin_right = 425.0
margin_bottom = 89.0
columns = 2
[node name="ip_label" type="Label" parent="menu/GridContainer"]
margin_right = 65.0
margin_bottom = 37.0
size_flags_vertical = 1
text = "IP"
valign = 1
[node name="ip" type="LineEdit" parent="menu/GridContainer"]
margin_left = 69.0
margin_right = 407.0
margin_bottom = 37.0
focus_neighbour_bottom = NodePath("../port")
size_flags_horizontal = 3
text = "127.0.0.1"
caret_blink = true
caret_blink_speed = 0.5
[node name="port_label" type="Label" parent="menu/GridContainer"]
margin_top = 41.0
margin_right = 65.0
margin_bottom = 78.0
size_flags_vertical = 1
text = "PORT"
valign = 1
[node name="port" type="SpinBox" parent="menu/GridContainer"]
margin_left = 69.0
margin_top = 41.0
margin_right = 407.0
margin_bottom = 78.0
focus_neighbour_top = NodePath("../ip")
focus_neighbour_bottom = NodePath("../../join")
max_value = 65535.0
value = 8128.0
align = 2
[node name="join" type="Button" parent="menu"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -143.0
margin_top = -56.0
grow_horizontal = 0
grow_vertical = 0
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
focus_neighbour_left = NodePath("../back")
focus_neighbour_top = NodePath("../GridContainer/port")
custom_fonts/font = ExtResource( 3 )
text = "JOIN"
icon = ExtResource( 4 )
flat = true
[node name="back" type="Button" parent="menu"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -56.0
margin_right = 132.001
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
focus_neighbour_top = NodePath("../GridContainer/port")
focus_neighbour_right = NodePath("../join")
custom_fonts/font = ExtResource( 3 )
text = "BACK"
icon = ExtResource( 5 )
flat = true
[connection signal="pressed" from="menu/join" to="." method="_on_join_pressed"]
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
+69
View File
@@ -0,0 +1,69 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/ingame.gd" type="Script" id=2]
[ext_resource path="res://assets/icons/open.png" type="Texture" id=3]
[ext_resource path="res://assets/icons/wrench.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/arrowLeft.png" type="Texture" id=5]
[node name="ingame_menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -0.857361
margin_right = -0.857361
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -155.0
margin_top = -100.5
margin_right = 155.0
margin_bottom = 100.5
grow_horizontal = 2
grow_vertical = 2
[node name="GridContainer" type="GridContainer" parent="menu"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="resume" type="Button" parent="menu/GridContainer"]
margin_right = 310.0
margin_bottom = 64.0
focus_neighbour_top = NodePath("../end")
focus_neighbour_bottom = NodePath("../settings")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "RESUME"
icon = ExtResource( 3 )
flat = true
[node name="settings" type="Button" parent="menu/GridContainer"]
margin_top = 68.0
margin_right = 310.0
margin_bottom = 132.0
focus_neighbour_top = NodePath("../resume")
focus_neighbour_bottom = NodePath("../end")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "SETTINGS"
icon = ExtResource( 4 )
flat = true
[node name="end" type="Button" parent="menu/GridContainer"]
margin_top = 136.0
margin_right = 310.0
margin_bottom = 200.0
focus_neighbour_top = NodePath("../settings")
focus_neighbour_bottom = NodePath(".")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "END_GAME"
icon = ExtResource( 5 )
flat = true
[connection signal="pressed" from="menu/GridContainer/resume" to="." method="_on_resume_pressed"]
[connection signal="pressed" from="menu/GridContainer/settings" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="menu/GridContainer/end" to="." method="_on_end_pressed"]
+147
View File
@@ -0,0 +1,147 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/lobby.gd" type="Script" id=2]
[ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/icons/checkmark.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/question.png" type="Texture" id=5]
[ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=6]
[ext_resource path="res://assets/fonts/Kenney Future Narrow.ttf" type="DynamicFontData" id=7]
[sub_resource type="DynamicFont" id=1]
size = 100
font_data = ExtResource( 7 )
[node name="lobby_menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 0.857376
margin_top = 0.857422
margin_right = 0.857422
margin_bottom = 0.857422
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" parent="." instance=ExtResource( 3 )]
[node name="back" parent="menu" index="0"]
focus_neighbour_right = NodePath("../ready")
[node name="top_bar" type="GridContainer" parent="menu"]
margin_left = 14.0
margin_top = 12.0
margin_right = 940.0
margin_bottom = 52.0
columns = 2
[node name="server_name" type="Label" parent="menu/top_bar"]
margin_right = 779.0
margin_bottom = 40.0
mouse_filter = 1
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Server"
valign = 1
[node name="server_bots" type="CheckButton" parent="menu/top_bar"]
margin_left = 783.0
margin_right = 926.0
margin_bottom = 40.0
disabled = true
text = "Bots"
align = 2
[node name="mid" type="GridContainer" parent="menu"]
margin_left = 12.0
margin_top = 57.0
margin_right = 936.0
margin_bottom = 397.0
columns = 3
[node name="players" type="ItemList" parent="menu/mid"]
margin_right = 456.0
margin_bottom = 340.0
size_flags_horizontal = 3
[node name="ready_icon" type="Button" parent="menu/mid/players"]
visible = false
margin_right = 62.0
margin_bottom = 56.0
icon = ExtResource( 4 )
[node name="not_ready_icon" type="Button" parent="menu/mid/players"]
visible = false
margin_right = 62.0
margin_bottom = 56.0
icon = ExtResource( 5 )
[node name="VSeparator" type="VSeparator" parent="menu/mid"]
margin_left = 460.0
margin_right = 464.0
margin_bottom = 340.0
[node name="player_settings" parent="menu/mid" instance=ExtResource( 6 )]
margin_left = 468.0
margin_top = 0.0
margin_right = 924.0
margin_bottom = 340.0
[node name="name_label" parent="menu/mid/player_settings/GridContainer" index="0"]
margin_right = 456.0
margin_bottom = 27.0
[node name="name" parent="menu/mid/player_settings/GridContainer" index="1"]
margin_top = 31.0
margin_right = 456.0
margin_bottom = 68.0
focus_neighbour_bottom = NodePath("../color")
[node name="color_label" parent="menu/mid/player_settings/GridContainer" index="2"]
margin_top = 72.0
margin_right = 456.0
margin_bottom = 99.0
[node name="color" parent="menu/mid/player_settings/GridContainer" index="3"]
margin_top = 103.0
margin_right = 456.0
margin_bottom = 136.0
focus_neighbour_top = NodePath("../name")
focus_neighbour_bottom = NodePath("../../../../ready")
[node name="ready" type="CheckButton" parent="menu"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -166.0
margin_top = -58.0
grow_vertical = 0
focus_neighbour_left = NodePath("../back")
focus_neighbour_top = NodePath("../mid/player_settings/GridContainer/color")
text = "READY"
flat = true
[node name="countdown" type="Label" parent="."]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -94.0
margin_top = -56.5
margin_right = 94.0
margin_bottom = 56.5
custom_fonts/font = SubResource( 1 )
text = "3"
align = 1
valign = 1
[node name="countdown_timer" type="Timer" parent="."]
process_mode = 0
wait_time = 3.0
one_shot = true
[connection signal="toggled" from="menu/ready" to="." method="_on_ready_toggled"]
[editable path="menu"]
[editable path="menu/mid/player_settings"]
+108
View File
@@ -0,0 +1,108 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/local_game.gd" type="Script" id=2]
[ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=3]
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=4]
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=5]
[ext_resource path="res://assets/icons/return.png" type="Texture" id=6]
[node name="local_game_menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 0.857376
margin_top = 0.857422
margin_right = 0.857422
margin_bottom = 0.857422
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -217.5
margin_top = -130.5
margin_right = 217.5
margin_bottom = 130.5
grow_horizontal = 2
grow_vertical = 2
[node name="GridContainer" type="GridContainer" parent="menu"]
margin_left = 19.0
margin_top = 21.0
margin_right = 418.0
margin_bottom = 197.0
[node name="player_settings" parent="menu/GridContainer" instance=ExtResource( 3 )]
margin_left = 0.0
margin_top = 0.0
margin_right = 399.0
margin_bottom = 132.0
[node name="name_label" parent="menu/GridContainer/player_settings/GridContainer" index="0"]
margin_right = 399.0
margin_bottom = 27.0
[node name="name" parent="menu/GridContainer/player_settings/GridContainer" index="1"]
margin_top = 31.0
margin_right = 399.0
margin_bottom = 68.0
focus_neighbour_bottom = NodePath("../color")
[node name="color_label" parent="menu/GridContainer/player_settings/GridContainer" index="2"]
margin_top = 72.0
margin_right = 399.0
margin_bottom = 99.0
[node name="color" parent="menu/GridContainer/player_settings/GridContainer" index="3"]
margin_top = 103.0
margin_right = 399.0
margin_bottom = 136.0
focus_neighbour_top = NodePath("../name")
focus_neighbour_bottom = NodePath("../../../bots")
[node name="bots" type="CheckButton" parent="menu/GridContainer"]
margin_top = 136.0
margin_right = 143.0
margin_bottom = 176.0
focus_neighbour_top = NodePath("../player_settings/GridContainer/color")
focus_neighbour_bottom = NodePath("../../start")
size_flags_horizontal = 0
pressed = true
text = "BOTS"
flat = true
[node name="start" type="Button" parent="menu"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -234.0
margin_top = -56.0
grow_horizontal = 0
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
focus_neighbour_left = NodePath("../back")
focus_neighbour_top = NodePath("../GridContainer/bots")
custom_fonts/font = ExtResource( 4 )
text = "START_GAME"
icon = ExtResource( 5 )
flat = true
[node name="back" type="Button" parent="menu"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -56.0
margin_right = 132.0
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
focus_neighbour_top = NodePath("../GridContainer/bots")
focus_neighbour_right = NodePath("../start")
custom_fonts/font = ExtResource( 4 )
text = "BACK"
icon = ExtResource( 6 )
flat = true
[connection signal="pressed" from="menu/start" to="." method="_on_start_pressed"]
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
[editable path="menu/GridContainer/player_settings"]
+90
View File
@@ -0,0 +1,90 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/main.gd" type="Script" id=2]
[ext_resource path="res://assets/icons/massiveMultiplayer.png" type="Texture" id=3]
[ext_resource path="res://assets/icons/singleplayer.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/wrench.png" type="Texture" id=5]
[ext_resource path="res://assets/icons/power.png" type="Texture" id=6]
[node name="main_menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -0.857361
margin_right = -0.857361
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -155.0
margin_top = -132.5
margin_right = 155.0
margin_bottom = 132.5
grow_horizontal = 2
grow_vertical = 2
[node name="GridContainer" type="GridContainer" parent="menu"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="multiplayer" type="Button" parent="menu/GridContainer"]
margin_right = 310.0
margin_bottom = 63.0
focus_neighbour_top = NodePath("../quit")
focus_neighbour_bottom = NodePath("../practice")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "MULTIPLAYER"
icon = ExtResource( 3 )
flat = true
[node name="practice" type="Button" parent="menu/GridContainer"]
margin_top = 67.0
margin_right = 310.0
margin_bottom = 130.0
focus_neighbour_top = NodePath("../multiplayer")
focus_neighbour_bottom = NodePath("../settings")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "PRACTISE"
icon = ExtResource( 4 )
flat = true
[node name="settings" type="Button" parent="menu/GridContainer"]
margin_top = 134.0
margin_right = 310.0
margin_bottom = 197.0
focus_neighbour_top = NodePath("../practice")
focus_neighbour_bottom = NodePath("../quit")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "SETTINGS"
icon = ExtResource( 5 )
flat = true
[node name="quit" type="Button" parent="menu/GridContainer"]
margin_top = 201.0
margin_right = 310.0
margin_bottom = 264.0
focus_neighbour_top = NodePath("../settings")
focus_neighbour_bottom = NodePath("../multiplayer")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "QUIT"
icon = ExtResource( 6 )
flat = true
[node name="error_dialog" type="AcceptDialog" parent="."]
margin_right = 138.0
margin_bottom = 84.0
window_title = "ALERT"
dialog_text = "Server disconnected!"
[connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_multiplayer_pressed"]
[connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_online_pressed"]
[connection signal="pressed" from="menu/GridContainer/practice" to="." method="_on_practice_pressed"]
[connection signal="pressed" from="menu/GridContainer/settings" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="menu/GridContainer/quit" to="." method="_on_quit_pressed"]
+159
View File
@@ -0,0 +1,159 @@
[gd_scene load_steps=11 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/server.gd" type="Script" id=2]
[ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/icons/cpu.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=5]
[ext_resource path="res://assets/icons/car.png" type="Texture" id=6]
[ext_resource path="res://assets/icons/trophy.png" type="Texture" id=7]
[ext_resource path="res://assets/icons/locked.png" type="Texture" id=8]
[ext_resource path="res://assets/icons/massiveMultiplayer.png" type="Texture" id=9]
[ext_resource path="res://assets/icons/fistPlus.png" type="Texture" id=10]
[node name="multiplayer_menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -0.142624
margin_top = 2.85742
margin_right = -0.142578
margin_bottom = 2.85742
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" parent="." instance=ExtResource( 3 )]
[node name="back" parent="menu" index="0"]
focus_neighbour_top = NodePath("../games")
focus_neighbour_right = NodePath("../bottom_bar/refresh")
[node name="top_bar" type="GridContainer" parent="menu"]
anchor_right = 1.0
margin_bottom = 56.0
columns = 3
[node name="direct_host" type="Button" parent="menu/top_bar"]
margin_right = 239.0
margin_bottom = 56.0
focus_neighbour_right = NodePath("../direct_join")
focus_neighbour_bottom = NodePath("../../games")
text = "DIRECT_HOST"
icon = ExtResource( 4 )
flat = true
[node name="direct_join" type="Button" parent="menu/top_bar"]
margin_left = 243.0
margin_right = 473.0
margin_bottom = 56.0
focus_neighbour_left = NodePath("../direct_host")
focus_neighbour_right = NodePath("../open")
focus_neighbour_bottom = NodePath("../../games")
text = "DIRECT_JOIN"
icon = ExtResource( 5 )
flat = true
[node name="open" type="CheckButton" parent="menu/top_bar"]
margin_left = 477.0
margin_right = 945.0
margin_bottom = 56.0
focus_neighbour_left = NodePath("../direct_join")
focus_neighbour_bottom = NodePath("../../games")
size_flags_horizontal = 3
disabled = true
pressed = true
text = "OPEN_GAMES_ONLY"
align = 2
[node name="games" type="ItemList" parent="menu"]
margin_left = 13.0
margin_top = 60.0
margin_right = 931.0
margin_bottom = 414.0
focus_neighbour_top = NodePath("../top_bar/open")
focus_neighbour_bottom = NodePath("../bottom_bar/join")
[node name="open_icon" type="Button" parent="menu/games"]
visible = false
margin_right = 12.0
margin_bottom = 33.0
icon = ExtResource( 6 )
[node name="running_icon" type="Button" parent="menu/games"]
visible = false
margin_right = 12.0
margin_bottom = 33.0
icon = ExtResource( 7 )
[node name="private_icon" type="Button" parent="menu/games"]
visible = false
margin_right = 12.0
margin_bottom = 33.0
icon = ExtResource( 8 )
[node name="bottom_bar" type="GridContainer" parent="menu"]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 380.0
margin_top = -56.0
grow_horizontal = 0
columns = 3
[node name="refresh" type="Button" parent="menu/bottom_bar"]
margin_right = 183.0
margin_bottom = 56.0
grow_horizontal = 0
focus_neighbour_left = NodePath("../../back")
focus_neighbour_top = NodePath("../../games")
focus_neighbour_right = NodePath("../create")
text = "REFRESH"
icon = ExtResource( 9 )
flat = true
align = 0
[node name="create" type="Button" parent="menu/bottom_bar"]
margin_left = 187.0
margin_right = 441.0
margin_bottom = 56.0
focus_neighbour_left = NodePath("../refresh")
focus_neighbour_top = NodePath("../../games")
focus_neighbour_right = NodePath("../join")
disabled = true
text = "CREATE_GAME"
icon = ExtResource( 10 )
flat = true
align = 2
[node name="join" type="Button" parent="menu/bottom_bar"]
margin_left = 445.0
margin_right = 565.0
margin_bottom = 56.0
focus_neighbour_left = NodePath("../create")
focus_neighbour_top = NodePath("../../games")
disabled = true
text = "JOIN"
icon = ExtResource( 5 )
flat = true
align = 2
[node name="error_dialog" type="AcceptDialog" parent="."]
margin_right = 138.0
margin_bottom = 84.0
window_title = "ALERT"
[node name="refresh_timer" type="Timer" parent="."]
wait_time = 5.0
autostart = true
[connection signal="draw" from="." to="." method="_on_multiplayer_menu_draw"]
[connection signal="hide" from="." to="." method="_on_multiplayer_menu_hide"]
[connection signal="pressed" from="menu/top_bar/direct_host" to="." method="_on_direct_host_pressed"]
[connection signal="pressed" from="menu/top_bar/direct_join" to="." method="_on_direct_join_pressed"]
[connection signal="toggled" from="menu/top_bar/open" to="." method="_on_open_toggled"]
[connection signal="item_selected" from="menu/games" to="." method="_on_games_item_selected"]
[connection signal="nothing_selected" from="menu/games" to="." method="_on_games_nothing_selected"]
[connection signal="pressed" from="menu/bottom_bar/refresh" to="." method="_on_refresh_pressed"]
[connection signal="pressed" from="menu/bottom_bar/create" to="." method="_on_create_pressed"]
[connection signal="pressed" from="menu/bottom_bar/join" to="." method="_on_join_pressed"]
[connection signal="timeout" from="refresh_timer" to="." method="_on_refresh_timer_timeout"]
[editable path="menu"]
+99
View File
@@ -0,0 +1,99 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/server_create.gd" type="Script" id=2]
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
[ext_resource path="res://assets/icons/fistPlus.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
[node name="server_create_menu" type="Control"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -512.0
margin_top = -300.0
margin_right = 512.0
margin_bottom = 300.0
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -217.5
margin_top = -68.5
margin_right = 217.5
margin_bottom = 68.5
grow_horizontal = 2
grow_vertical = 2
[node name="GridContainer" type="GridContainer" parent="menu"]
margin_left = 12.0
margin_top = 11.0
margin_right = 427.0
margin_bottom = 92.0
columns = 2
[node name="name_label" type="Label" parent="menu/GridContainer"]
margin_top = 5.0
margin_right = 162.0
margin_bottom = 32.0
text = "GAME_NAME"
[node name="name" type="LineEdit" parent="menu/GridContainer"]
margin_left = 166.0
margin_right = 415.0
margin_bottom = 37.0
focus_neighbour_left = NodePath("../../back")
focus_neighbour_right = NodePath("../../create")
focus_neighbour_bottom = NodePath("../bots")
size_flags_horizontal = 3
[node name="bots" type="CheckButton" parent="menu/GridContainer"]
margin_top = 41.0
margin_right = 143.0
margin_bottom = 81.0
focus_neighbour_left = NodePath("../../back")
focus_neighbour_top = NodePath("../name")
focus_neighbour_right = NodePath("../../create")
focus_neighbour_bottom = NodePath("../../create")
size_flags_horizontal = 0
text = "BOTS"
[node name="create" type="Button" parent="menu"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -255.0
margin_top = -56.0001
margin_right = -1.0
grow_horizontal = 0
grow_vertical = 0
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
focus_neighbour_left = NodePath("../back")
focus_neighbour_top = NodePath("../GridContainer/bots")
focus_neighbour_right = NodePath("../GridContainer/name")
custom_fonts/font = ExtResource( 3 )
text = "CREATE_GAME"
icon = ExtResource( 4 )
flat = true
[node name="back" type="Button" parent="menu"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -56.0
margin_right = 132.0
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
focus_neighbour_top = NodePath("../GridContainer/bots")
focus_neighbour_right = NodePath("../create")
custom_fonts/font = ExtResource( 3 )
text = "Back"
icon = ExtResource( 5 )
flat = true
[connection signal="text_changed" from="menu/GridContainer/name" to="." method="_on_name_text_changed"]
[connection signal="pressed" from="menu/create" to="." method="_on_create_pressed"]
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
+189
View File
@@ -0,0 +1,189 @@
[gd_scene load_steps=20 format=2]
[ext_resource path="res://scripts/menus/settings_controls.gd" type="Script" id=1]
[ext_resource path="res://assets/icons/keySmall_3d.png" type="Texture" id=2]
[ext_resource path="res://assets/icons/buttonA.png" type="Texture" id=3]
[ext_resource path="res://assets/icons/buttonB.png" type="Texture" id=4]
[ext_resource path="res://assets/icons/buttonX.png" type="Texture" id=5]
[ext_resource path="res://assets/icons/buttonY.png" type="Texture" id=6]
[ext_resource path="res://assets/icons/buttonL1.png" type="Texture" id=7]
[ext_resource path="res://assets/icons/buttonR1.png" type="Texture" id=8]
[ext_resource path="res://assets/icons/buttonL2.png" type="Texture" id=9]
[ext_resource path="res://assets/icons/buttonR2.png" type="Texture" id=10]
[ext_resource path="res://assets/icons/buttonL.png" type="Texture" id=11]
[ext_resource path="res://assets/icons/buttonR.png" type="Texture" id=12]
[ext_resource path="res://assets/icons/buttonSelect.png" type="Texture" id=13]
[ext_resource path="res://assets/icons/buttonStart.png" type="Texture" id=14]
[ext_resource path="res://assets/icons/DPAD_up.png" type="Texture" id=15]
[ext_resource path="res://assets/icons/DPAD_down.png" type="Texture" id=16]
[ext_resource path="res://assets/icons/DPAD_left.png" type="Texture" id=17]
[ext_resource path="res://assets/icons/DPAD_right.png" type="Texture" id=18]
[ext_resource path="res://assets/icons/fightJ.png" type="Texture" id=19]
[node name="settings_controls_menu" type="Control"]
margin_left = 12.0
margin_top = 8.0
margin_right = 858.0
margin_bottom = 335.0
script = ExtResource( 1 )
[node name="key_dialog" type="ConfirmationDialog" parent="."]
margin_left = 18.0
margin_top = 16.0
margin_right = 311.0
margin_bottom = 100.0
popup_exclusive = true
window_title = ""
dialog_text = "Press any key..."
[node name="ScrollContainer" type="ScrollContainer" parent="."]
editor/display_folded = true
anchor_right = 1.0
anchor_bottom = 1.0
[node name="grid" type="GridContainer" parent="ScrollContainer"]
margin_right = 846.0
margin_bottom = 327.0
size_flags_horizontal = 3
size_flags_vertical = 3
columns = 3
[node name="empty" type="Label" parent="ScrollContainer/grid"]
margin_bottom = 14.0
[node name="keyboard_label" type="Label" parent="ScrollContainer/grid"]
margin_left = 4.0
margin_right = 423.0
margin_bottom = 14.0
size_flags_horizontal = 3
text = "KEYBOARD"
align = 1
valign = 1
[node name="joypad_label" type="Label" parent="ScrollContainer/grid"]
margin_left = 427.0
margin_right = 846.0
margin_bottom = 14.0
size_flags_horizontal = 3
text = "JOYPAD"
align = 1
valign = 1
[node name="icons" type="GridContainer" parent="."]
visible = false
margin_right = 40.0
margin_bottom = 40.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="key" type="Button" parent="icons"]
margin_right = 62.0
margin_bottom = 56.0
icon = ExtResource( 2 )
[node name="joypad" type="GridContainer" parent="icons"]
editor/display_folded = true
margin_top = 60.0
margin_right = 62.0
margin_bottom = 1076.0
[node name="0" type="Button" parent="icons/joypad"]
margin_right = 62.0
margin_bottom = 56.0
icon = ExtResource( 3 )
[node name="1" type="Button" parent="icons/joypad"]
margin_top = 60.0
margin_right = 62.0
margin_bottom = 116.0
icon = ExtResource( 4 )
[node name="2" type="Button" parent="icons/joypad"]
margin_top = 120.0
margin_right = 62.0
margin_bottom = 176.0
icon = ExtResource( 5 )
[node name="3" type="Button" parent="icons/joypad"]
margin_top = 180.0
margin_right = 62.0
margin_bottom = 236.0
icon = ExtResource( 6 )
[node name="4" type="Button" parent="icons/joypad"]
margin_top = 240.0
margin_right = 62.0
margin_bottom = 296.0
icon = ExtResource( 7 )
[node name="5" type="Button" parent="icons/joypad"]
margin_top = 300.0
margin_right = 62.0
margin_bottom = 356.0
icon = ExtResource( 8 )
[node name="6" type="Button" parent="icons/joypad"]
margin_top = 360.0
margin_right = 62.0
margin_bottom = 416.0
icon = ExtResource( 9 )
[node name="7" type="Button" parent="icons/joypad"]
margin_top = 420.0
margin_right = 62.0
margin_bottom = 476.0
icon = ExtResource( 10 )
[node name="8" type="Button" parent="icons/joypad"]
margin_top = 480.0
margin_right = 62.0
margin_bottom = 536.0
icon = ExtResource( 11 )
[node name="9" type="Button" parent="icons/joypad"]
margin_top = 540.0
margin_right = 62.0
margin_bottom = 596.0
icon = ExtResource( 12 )
[node name="10" type="Button" parent="icons/joypad"]
margin_top = 600.0
margin_right = 62.0
margin_bottom = 656.0
icon = ExtResource( 13 )
[node name="11" type="Button" parent="icons/joypad"]
margin_top = 660.0
margin_right = 62.0
margin_bottom = 716.0
icon = ExtResource( 14 )
[node name="12" type="Button" parent="icons/joypad"]
margin_top = 720.0
margin_right = 62.0
margin_bottom = 776.0
icon = ExtResource( 15 )
[node name="13" type="Button" parent="icons/joypad"]
margin_top = 780.0
margin_right = 62.0
margin_bottom = 836.0
icon = ExtResource( 16 )
[node name="14" type="Button" parent="icons/joypad"]
margin_top = 840.0
margin_right = 62.0
margin_bottom = 896.0
icon = ExtResource( 17 )
[node name="15" type="Button" parent="icons/joypad"]
margin_top = 900.0
margin_right = 62.0
margin_bottom = 956.0
icon = ExtResource( 18 )
[node name="other" type="Button" parent="icons/joypad"]
margin_top = 960.0
margin_right = 62.0
margin_bottom = 1016.0
icon = ExtResource( 19 )
+156
View File
@@ -0,0 +1,156 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://scripts/menus/settings.gd" type="Script" id=2]
[ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=4]
[ext_resource path="res://scenes/menus/SettingsControlsMenu.tscn" type="PackedScene" id=5]
[ext_resource path="res://assets/icons/save.png" type="Texture" id=6]
[node name="settings_menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 1.45612
margin_top = 1.45612
margin_right = 1.45605
margin_bottom = 1.45612
theme = ExtResource( 1 )
script = ExtResource( 2 )
[node name="menu" parent="." instance=ExtResource( 3 )]
[node name="tabs" type="TabContainer" parent="menu"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -464.5
margin_top = -223.5
margin_right = 459.5
margin_bottom = 177.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
tab_align = 0
[node name="game" type="Tabs" parent="menu/tabs"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 45.0
margin_right = -4.0
margin_bottom = -4.0
[node name="GridContainer" type="GridContainer" parent="menu/tabs/game"]
margin_left = 9.0
margin_top = 10.0
margin_right = 416.0
margin_bottom = 200.0
[node name="settings_player" parent="menu/tabs/game/GridContainer" instance=ExtResource( 4 )]
margin_left = 0.0
margin_top = 0.0
margin_right = 407.0
margin_bottom = 146.0
[node name="name_label" parent="menu/tabs/game/GridContainer/settings_player/GridContainer" index="0"]
margin_right = 407.0
margin_bottom = 27.0
[node name="name" parent="menu/tabs/game/GridContainer/settings_player/GridContainer" index="1"]
margin_top = 31.0
margin_right = 407.0
margin_bottom = 68.0
[node name="color_label" parent="menu/tabs/game/GridContainer/settings_player/GridContainer" index="2"]
margin_top = 72.0
margin_right = 407.0
margin_bottom = 99.0
[node name="color" parent="menu/tabs/game/GridContainer/settings_player/GridContainer" index="3"]
margin_top = 103.0
margin_right = 407.0
margin_bottom = 136.0
[node name="bots" type="CheckButton" parent="menu/tabs/game/GridContainer"]
margin_top = 150.0
margin_right = 143.0
margin_bottom = 190.0
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Bots"
[node name="controls" type="Tabs" parent="menu/tabs"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 45.0
margin_right = -4.0
margin_bottom = -4.0
[node name="settings_controls" parent="menu/tabs/controls" instance=ExtResource( 5 )]
[node name="graphics" type="Tabs" parent="menu/tabs"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 45.0
margin_right = -4.0
margin_bottom = -4.0
[node name="system" type="Tabs" parent="menu/tabs"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 45.0
margin_right = -4.0
margin_bottom = -4.0
[node name="GridContainer" type="GridContainer" parent="menu/tabs/system"]
margin_left = 12.0
margin_top = 8.0
margin_right = 476.0
margin_bottom = 124.0
columns = 2
[node name="locale_label" type="Label" parent="menu/tabs/system/GridContainer"]
margin_right = 102.0
margin_bottom = 27.0
text = "LOCALE"
valign = 1
[node name="locales" type="ItemList" parent="menu/tabs/system/GridContainer"]
margin_left = 106.0
margin_right = 464.0
margin_bottom = 27.0
size_flags_horizontal = 3
auto_height = true
[node name="save" type="Button" parent="menu"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -147.0
margin_top = -56.0
grow_horizontal = 0
grow_vertical = 0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "SAVE"
icon = ExtResource( 6 )
flat = true
[connection signal="item_selected" from="menu/tabs/system/GridContainer/locales" to="." method="_on_locales_item_selected"]
[connection signal="tree_exiting" from="menu/tabs/system/GridContainer/locales" to="." method="_on_locales_tree_exiting"]
[connection signal="visibility_changed" from="menu/tabs/system/GridContainer/locales" to="." method="_init_locales"]
[connection signal="pressed" from="menu/save" to="." method="_on_save_pressed"]
[editable path="menu"]
[editable path="menu/tabs/game/GridContainer/settings_player"]
[editable path="menu/tabs/controls/settings_controls"]
+39
View File
@@ -0,0 +1,39 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://scripts/menus/settings_player.gd" type="Script" id=1]
[node name="settings_player_menu" type="Control"]
margin_left = 513.0
margin_top = 23.0
margin_right = 878.0
margin_bottom = 116.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource( 1 )
[node name="GridContainer" type="GridContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="name_label" type="Label" parent="GridContainer"]
margin_right = 365.0
margin_bottom = 14.0
text = "PLAYER_NAME"
[node name="name" type="LineEdit" parent="GridContainer"]
margin_top = 18.0
margin_right = 365.0
margin_bottom = 42.0
size_flags_horizontal = 3
[node name="color_label" type="Label" parent="GridContainer"]
margin_top = 46.0
margin_right = 365.0
margin_bottom = 60.0
text = "PLAYER_COLOR"
[node name="color" type="ColorPickerButton" parent="GridContainer"]
margin_top = 64.0
margin_right = 365.0
margin_bottom = 84.0
size_flags_horizontal = 3
+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scripts/player/bot_controls.gd" type="Script" id=1]
[ext_resource path="res://scripts/player/bot_inventory.gd" type="Script" id=2]
[node name="BotPlayer" type="Spatial"]
script = ExtResource( 1 )
[node name="inventory" type="Spatial" parent="."]
script = ExtResource( 2 )
+119
View File
@@ -0,0 +1,119 @@
[gd_scene load_steps=11 format=2]
[ext_resource path="res://scripts/player/human_controls.gd" type="Script" id=1]
[ext_resource path="res://assets/fonts/Kenney Future Narrow.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=3]
[ext_resource path="res://scenes/menus/IngameMenu.tscn" type="PackedScene" id=4]
[ext_resource path="res://scripts/player/human_inventory.gd" type="Script" id=5]
[ext_resource path="res://scenes/road/roadStraightLong.tscn" type="PackedScene" id=6]
[ext_resource path="res://scripts/player/inventory_preview.gd" type="Script" id=7]
[sub_resource type="ViewportTexture" id=1]
viewport_path = NodePath("inventory/viewport")
[sub_resource type="DynamicFont" id=2]
size = 14
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=3]
size = 85
font_data = ExtResource( 2 )
[node name="HumanPlayer" type="Spatial"]
script = ExtResource( 1 )
[node name="hud" type="CanvasLayer" parent="."]
[node name="inventory" type="Control" parent="hud"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="background" type="ColorRect" parent="hud/inventory"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -75.0
margin_right = 75.0
margin_bottom = 150.0
[node name="track" type="TextureRect" parent="hud/inventory"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -75.0
margin_right = 75.0
margin_bottom = 150.0
texture = SubResource( 1 )
[node name="type" type="Label" parent="hud/inventory"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -74.0
margin_right = 75.0
margin_bottom = 58.0
grow_horizontal = 2
grow_vertical = 2
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
align = 1
valign = 1
[node name="speed" type="Label" parent="hud"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -77.0
margin_top = -39.0
margin_right = 77.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource( 3 )
align = 1
valign = 1
[node name="reset" type="Label" parent="hud"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -20.0
margin_top = -56.5
margin_right = 20.0
margin_bottom = 56.5
grow_horizontal = 2
grow_vertical = 2
custom_fonts/font = SubResource( 3 )
align = 1
valign = 1
uppercase = true
[node name="ingame_menu" parent="hud" instance=ExtResource( 4 )]
visible = false
[node name="inventory" type="Spatial" parent="."]
script = ExtResource( 5 )
[node name="viewport" type="Viewport" parent="inventory"]
size = Vector2( 150, 150 )
transparent_bg = true
hdr = false
render_target_v_flip = true
[node name="camera" type="Camera" parent="inventory/viewport"]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -50.616, -999.296, 0 )
current = true
fov = 100.0
near = 0.5
far = 20.0
[node name="view" type="Spatial" parent="inventory"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -50, -1000, 0 )
[node name="roadStraightLong" parent="inventory/view" instance=ExtResource( 6 )]
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0 )
[node name="preview" type="Spatial" parent="inventory"]
script = ExtResource( 7 )
[node name="camera" type="InterpolatedCamera" parent="."]
fov = 100.0
far = 250.0
+87
View File
@@ -0,0 +1,87 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://scripts/player/player.gd" type="Script" id=1]
[ext_resource path="res://scripts/player/race_car.gd" type="Script" id=2]
[ext_resource path="res://assets/raceCar/body.obj" type="ArrayMesh" id=3]
[ext_resource path="res://assets/raceCar/wheel.obj" type="ArrayMesh" id=4]
[sub_resource type="Curve3D" id=1]
bake_interval = 0.05
_data = {
"points": PoolVector3Array( ),
"tilts": PoolRealArray( )
}
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 0.14902, 0.14902, 0.14902, 1 )
[sub_resource type="BoxShape" id=3]
extents = Vector3( 0.075079, 0.03, 0.13 )
[node name="Player" type="Spatial"]
script = ExtResource( 1 )
[node name="Path" type="Path" parent="."]
curve = SubResource( 1 )
[node name="PathFollow" type="PathFollow" parent="Path"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 0.999999, 0, 0, 0 )
v_offset = 0.015
rotation_mode = 4
loop = false
[node name="raceCar" type="KinematicBody" parent="Path/PathFollow"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
collision_layer = 31
collision_mask = 31
script = ExtResource( 2 )
[node name="body" type="MeshInstance" parent="Path/PathFollow/raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.125 )
mesh = ExtResource( 3 )
material/0 = null
material/1 = null
material/2 = null
[node name="wheelBackLeft" type="MeshInstance" parent="Path/PathFollow/raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.061, 0.024, -0.082 )
mesh = ExtResource( 4 )
material/0 = SubResource( 2 )
material/1 = null
[node name="wheelBackRight" type="MeshInstance" parent="Path/PathFollow/raceCar"]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.061, 0.024, -0.082 )
mesh = ExtResource( 4 )
material/0 = SubResource( 2 )
material/1 = null
[node name="wheelFrontLeft" type="MeshInstance" parent="Path/PathFollow/raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.061, 0.024, 0.078 )
mesh = ExtResource( 4 )
material/0 = SubResource( 2 )
material/1 = null
[node name="wheelFrontRight" type="MeshInstance" parent="Path/PathFollow/raceCar"]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.061, 0.024, 0.078 )
mesh = ExtResource( 4 )
material/0 = SubResource( 2 )
material/1 = null
[node name="collision" type="CollisionShape" parent="Path/PathFollow/raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.03, 0.01 )
shape = SubResource( 3 )
[node name="CameraTarget" type="Spatial" parent="Path/PathFollow/raceCar"]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.3, -0.6 )
[node name="ray" type="RayCast" parent="Path/PathFollow/raceCar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.075, 0.2 )
enabled = true
cast_to = Vector3( 0, -0.2, 0 )
collision_mask = 0
[node name="ResetTimer" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
[connection signal="road_entered" from="Path/PathFollow/raceCar" to="." method="_on_raceCar_road_entered"]
[connection signal="timeout" from="ResetTimer" to="." method="_on_ResetTimer_timeout"]
+20
View File
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadBump.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadBump.tres" type="Curve3D" id=3]
[node name="roadBump" type="MeshInstance"]
transform = Transform( 1, 0, 0, 0, 1, -0.0001179, 0, 0.0001179, 1, 0, 0, 0 )
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
reset_index = 1
speed_constrains = PoolVector3Array( 0.45, 0.8, 0.12, 0.45, 0.8, -0.02, 1.15, 1.55, 0.12 )
force_penalties = PoolVector3Array( 0, 5, 10, 0, 0, 0, 0, 0, 7 )
path_penalties = [ 0.0, 0.5 ]
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+13
View File
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadCornerBridgeLarge.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadCornerLarge.tres" type="Curve3D" id=2]
[node name="roadCornerBridgeLarge" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadCornerBridgeLargeFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadCornerLargeFlipped.tres" type="Curve3D" id=2]
[node name="roadCornerBridgeLargeFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
+13
View File
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadCornerBridgeLarger.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadCornerLarger.tres" type="Curve3D" id=2]
[node name="roadCornerBridgeLarger" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadCornerBridgeLargerFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadCornerLargerFlipped.tres" type="Curve3D" id=2]
[node name="roadCornerBridgeLargerFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
+13
View File
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadCornerBridgeSmall.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadCornerSmall.tres" type="Curve3D" id=2]
[node name="roadCornerBridgeSmall" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadCornerBridgeSmallFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadCornerSmallFlipped.tres" type="Curve3D" id=2]
[node name="roadCornerBridgeSmallFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
+19
View File
@@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCornerLarge.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCornerLarge.tres" type="Curve3D" id=3]
[node name="roadCornerLarge" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
end_rotation = Vector3( 0, -1.571, 0 )
speed_constrains = PoolVector3Array( 0.2, 0.6, 0.13, 0.6, 1.5, 0.1, 1.5, 2.36, 0.13 )
force_penalties = PoolVector3Array( 2, 0, 8 )
torque_penalties = PoolVector3Array( 0.5, 0.1, 0.1 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+19
View File
@@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCornerLargeFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCornerLargeFlipped.tres" type="Curve3D" id=3]
[node name="roadCornerLargeFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
end_rotation = Vector3( 0, 1.571, 0 )
speed_constrains = PoolVector3Array( 0.2, 0.6, 0.13, 0.6, 1.5, 0.1, 1.5, 2.36, 0.13 )
force_penalties = PoolVector3Array( 1, 0, 5 )
torque_penalties = PoolVector3Array( 0, 1, 1.5 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+19
View File
@@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCornerLarger.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCornerLarger.tres" type="Curve3D" id=3]
[node name="roadCornerLarger" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
end_rotation = Vector3( 0, -1.571, 0 )
speed_constrains = PoolVector3Array( 0.3, 1, 0.16, 1, 2.7, 0.13, 2.7, 3.93, 0.16 )
force_penalties = PoolVector3Array( 0, 0, 5 )
torque_penalties = PoolVector3Array( 0, 0, 1 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+19
View File
@@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCornerLargerFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCornerLargerFlipped.tres" type="Curve3D" id=3]
[node name="roadCornerLargerFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
end_rotation = Vector3( 0, 1.571, 0 )
speed_constrains = PoolVector3Array( 0.3, 1, 0.16, 1, 2.7, 0.13, 2.7, 3.93, 0.16 )
force_penalties = PoolVector3Array( 0, 0, 5 )
torque_penalties = PoolVector3Array( 0, 0, -1 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+19
View File
@@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCornerSmall.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCornerSmall.tres" type="Curve3D" id=3]
[node name="roadCornerSmall" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
end_rotation = Vector3( 0, -1.571, 0 )
speed_constrains = PoolVector3Array( 0.1, 0.79, 0.08 )
force_penalties = PoolVector3Array( 0, 0, 5 )
torque_penalties = PoolVector3Array( 0, 0, 1 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+19
View File
@@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCornerSmallFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCornerSmallFlipped.tres" type="Curve3D" id=3]
[node name="roadCornerSmallFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
end_rotation = Vector3( 0, 1.571, 0 )
speed_constrains = PoolVector3Array( 0.1, 0.79, 0.08 )
force_penalties = PoolVector3Array( 0, 0, 5 )
torque_penalties = PoolVector3Array( 0, 0, -1 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadCrossing.obj" type="ArrayMesh" id=1]
[node name="roadCrossing" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+18
View File
@@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCurved.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCurved.tres" type="Curve3D" id=3]
[node name="roadCurved" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
speed_constrains = PoolVector3Array( 0, 0.5, 0.14, 1.5, 2, 0.14 )
force_penalties = PoolVector3Array( 0, 0, 4 )
torque_penalties = PoolVector3Array( 0, 0, 2 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+18
View File
@@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadCurvedFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadCurvedFlipped.tres" type="Curve3D" id=3]
[node name="roadCurvedFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
speed_constrains = PoolVector3Array( 0, 0.5, 0.14, 1.5, 2, 0.14 )
force_penalties = PoolVector3Array( 0, 0, 4 )
torque_penalties = PoolVector3Array( 0, 0, 2 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadCurvedSplit.obj" type="ArrayMesh" id=1]
[node name="roadCurvedSplit" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadEnd.obj" type="ArrayMesh" id=1]
[node name="roadEnd" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+36
View File
@@ -0,0 +1,36 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/road/roadLoop.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadLoop.tres" type="Curve3D" id=3]
[ext_resource path="res://resources/road/roadLoop_collision.tres" type="Curve3D" id=4]
[node name="roadLoop" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
reset_index = 2
speed_constrains = PoolVector3Array( 2.5, 4.8, -0.09, 4.8, 7.6, -0.13 )
force_penalties = PoolVector3Array( 0, 0, 0, 0, -1, -0.1 )
path_penalties = [ 5.0 ]
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
[node name="CollisionPath" type="Path" parent="."]
curve = ExtResource( 4 )
[node name="StaticBody" type="CSGPolygon" parent="."]
visible = false
use_collision = true
invert_faces = true
polygon = PoolVector2Array( -0.5, 0, -0.5, 0.01, 0.5, 0.01, 0.5, 0 )
mode = 2
path_node = NodePath("../CollisionPath")
path_interval = 1.0
path_rotation = 1
path_local = true
path_continuous_u = true
path_joined = false
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadPitEntry.obj" type="ArrayMesh" id=1]
[node name="roadPitEntry" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadPitGarage.obj" type="ArrayMesh" id=1]
[node name="roadPitGarage" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadPitStraight.obj" type="ArrayMesh" id=1]
[node name="roadPitStraight" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadPitStraightLong.obj" type="ArrayMesh" id=1]
[node name="roadPitStraightLong" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+18
View File
@@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadRamp.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadRamp.tres" type="Curve3D" id=3]
[node name="roadRamp" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
reset_index = 1
speed_constrains = PoolVector3Array( 0, 1, -0.05 )
path_penalties = [ 1.0 ]
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadRampFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadRampFlipped.tres" type="Curve3D" id=3]
[node name="roadRampFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
speed_constrains = PoolVector3Array( 0, 0.3, 0.12 )
force_penalties = PoolVector3Array( 0, 0, 4 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+18
View File
@@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadRampLong.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadRampLong.tres" type="Curve3D" id=3]
[node name="roadRampLong" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
reset_index = 1
speed_constrains = PoolVector3Array( 0, 2, -0.05 )
path_penalties = [ 2.0 ]
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+18
View File
@@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadRampLongCurved.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadRampLongCurved.tres" type="Curve3D" id=3]
[node name="roadRampLongCurved" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
reset_index = 1
speed_constrains = PoolVector3Array( 0.25, 1.5, -0.05 )
path_penalties = [ 1.25 ]
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadRampLongCurvedFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadRampLongCurvedFlipped.tres" type="Curve3D" id=3]
[node name="roadRampLongCurvedFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
speed_constrains = PoolVector3Array( 0.25, 0.4, 0.12 )
force_penalties = PoolVector3Array( 0, 0, 3.5 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadRampLongFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadRampLongFlipped.tres" type="Curve3D" id=3]
[node name="roadRampLongFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
speed_constrains = PoolVector3Array( 0, 0.1, 0.12 )
force_penalties = PoolVector3Array( 0, 0, 4 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSide.obj" type="ArrayMesh" id=1]
[node name="roadSide" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSideFlipped.obj" type="ArrayMesh" id=1]
[node name="roadSideFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplit.obj" type="ArrayMesh" id=1]
[node name="roadSplit" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitLarge.obj" type="ArrayMesh" id=1]
[node name="roadSplitLarge" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitLargeFlipped.obj" type="ArrayMesh" id=1]
[node name="roadSplitLargeFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitLarger.obj" type="ArrayMesh" id=1]
[node name="roadSplitLarger" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitLargerFlipped.obj" type="ArrayMesh" id=1]
[node name="roadSplitLargerFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitRound.obj" type="ArrayMesh" id=1]
[node name="roadSplitRound" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitRoundLarge.obj" type="ArrayMesh" id=1]
[node name="roadSplitRoundLarge" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitSmall.obj" type="ArrayMesh" id=1]
[node name="roadSplitSmall" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+9
View File
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/road/roadSplitSmallFlipped.obj" type="ArrayMesh" id=1]
[node name="roadSplitSmallFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
+23
View File
@@ -0,0 +1,23 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/road/roadStart.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStart.tres" type="Curve3D" id=3]
[ext_resource path="res://scenes/lanes/StartLanes.tscn" type="PackedScene" id=4]
[node name="roadStart" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
material/3 = null
material/4 = null
material/5 = null
script = ExtResource( 2 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
[node name="lanes" parent="." instance=ExtResource( 4 )]
[editable path="lanes"]
+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadStraight.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStraight.tres" type="Curve3D" id=3]
[node name="roadStraight" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
first_speed_factor = 0.8
creator_speed_factor = 0.8
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+15
View File
@@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadStraightArrow.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStraightArrow.tres" type="Curve3D" id=3]
[node name="roadStraightArrow" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+14
View File
@@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadStraightBridge.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadStraight.tres" type="Curve3D" id=2]
[node name="roadStraightBridge" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
material/3 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
+13
View File
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadStraightBridgeMid.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadStraight.tres" type="Curve3D" id=2]
[node name="roadStraightBridgeMid" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
+13
View File
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadStraightBridgeStart.obj" type="ArrayMesh" id=1]
[ext_resource path="res://resources/road/roadStraight.tres" type="Curve3D" id=2]
[node name="roadStraightBridgeStart" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
[node name="Path" type="Path" parent="."]
curve = ExtResource( 2 )
+17
View File
@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadStraightLong.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStraightLong.tres" type="Curve3D" id=3]
[node name="roadStraightLong" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
first_speed_factor = 0.8
creator_speed_factor = 0.8
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+24
View File
@@ -0,0 +1,24 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadStraightLongBump.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStraightLongBump.tres" type="Curve3D" id=3]
[node name="roadStraightLongBump" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
reset_index = 1
speed_constrains = PoolVector3Array( 0.1, 0.8, 0.13, 0.1, 0.8, -0.05, 1.2, 1.6, 0.13 )
force_penalties = PoolVector3Array( 0, 4, 15, 0, 0, 0, 0, 0, 5 )
torque_penalties = PoolVector3Array( 0.2, 0, 0, 0, 0, 0, 0.1, 0, 0 )
path_penalties = [ 0.0, 0.7 ]
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
[node name="PathFollow" type="PathFollow" parent="Path"]
transform = Transform( 1, 0, 0, 0, 0.743809, -0.668391, 0, 0.668391, 0.743809, 0, 0.100104, 1.55236 )
offset = 1.62
@@ -0,0 +1,11 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/road/roadStraightLongBumpRound.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[node name="roadStraightLongBumpRound" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
+15
View File
@@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadStraightLongMid.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStraightLongMid.tres" type="Curve3D" id=3]
[node name="roadStraightLongMid" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+20
View File
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadStraightSkew.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStraightSkew.tres" type="Curve3D" id=3]
[node name="roadStraightSkew" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
first_speed_factor = 0.9
creator_speed_factor = 0.9
speed_constrains = PoolVector3Array( 0, 0.2, 0.14 )
force_penalties = PoolVector3Array( 0, 0, 3 )
torque_penalties = PoolVector3Array( 0, 0, 2 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )
+20
View File
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/road/roadStraightSkewFlipped.obj" type="ArrayMesh" id=1]
[ext_resource path="res://scripts/road/road.gd" type="Script" id=2]
[ext_resource path="res://resources/road/roadStraightSkewFlipped.tres" type="Curve3D" id=3]
[node name="roadStraightSkewFlipped" type="MeshInstance"]
mesh = ExtResource( 1 )
material/0 = null
material/1 = null
material/2 = null
script = ExtResource( 2 )
first_speed_factor = 0.9
creator_speed_factor = 0.9
speed_constrains = PoolVector3Array( 0, 0.2, 0.14 )
force_penalties = PoolVector3Array( 0, 0, 3 )
torque_penalties = PoolVector3Array( 0, 0, 2 )
[node name="Path" type="Path" parent="."]
curve = ExtResource( 3 )