late Sunday update: netcode changes, bot improvements, bot development
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
[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 )
|
||||
|
||||
[node name="rate_timer" type="Timer" parent="."]
|
||||
wait_time = 0.1
|
||||
autostart = true
|
||||
[connection signal="timeout" from="rate_timer" to="." method="_on_rate_timer_timeout"]
|
||||
|
||||
@@ -1,33 +1,64 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=14 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/player/human_controls.gd" type="Script" id=1]
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=2]
|
||||
[ext_resource path="res://assets/fonts/Kenney Future Narrow.ttf" type="DynamicFontData" 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]
|
||||
[ext_resource path="res://scripts/screen_capture.gd" type="Script" id=2]
|
||||
[ext_resource path="res://assets/icons/save.png" type="Texture" id=3]
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=4]
|
||||
[ext_resource path="res://assets/fonts/Kenney Future Narrow.ttf" type="DynamicFontData" id=5]
|
||||
[ext_resource path="res://scenes/menus/IngameMenu.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://scripts/player/human_inventory.gd" type="Script" id=7]
|
||||
[ext_resource path="res://scenes/road/roadStraightLong.tscn" type="PackedScene" id=8]
|
||||
[ext_resource path="res://scripts/player/inventory_preview.gd" type="Script" id=9]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=4]
|
||||
bg_color = Color( 1, 0, 0, 1 )
|
||||
|
||||
[sub_resource type="ViewportTexture" id=1]
|
||||
viewport_path = NodePath("inventory/viewport")
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 14
|
||||
font_data = ExtResource( 3 )
|
||||
font_data = ExtResource( 5 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=3]
|
||||
size = 85
|
||||
font_data = ExtResource( 3 )
|
||||
font_data = ExtResource( 5 )
|
||||
|
||||
[node name="HumanPlayer" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="hud" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="inventory" type="Control" parent="hud"]
|
||||
[node name="screen_capture" type="Control" parent="hud"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme = ExtResource( 2 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="recording" type="ColorRect" parent="hud/screen_capture"]
|
||||
visible = false
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
margin_left = -50.0
|
||||
margin_bottom = 50.0
|
||||
color = Color( 1, 0, 0, 1 )
|
||||
|
||||
[node name="saving" type="Button" parent="hud/screen_capture"]
|
||||
visible = false
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
margin_left = -50.0
|
||||
margin_bottom = 50.0
|
||||
custom_styles/normal = SubResource( 4 )
|
||||
disabled = true
|
||||
shortcut_in_tooltip = false
|
||||
icon = ExtResource( 3 )
|
||||
flat = true
|
||||
|
||||
[node name="inventory" type="Control" parent="hud"]
|
||||
editor/display_folded = true
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme = ExtResource( 4 )
|
||||
|
||||
[node name="track_container" type="Panel" parent="hud/inventory"]
|
||||
anchor_left = 0.5
|
||||
@@ -72,7 +103,7 @@ margin_top = -39.0
|
||||
margin_right = 77.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource( 2 )
|
||||
theme = ExtResource( 4 )
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
@@ -92,11 +123,12 @@ align = 1
|
||||
valign = 1
|
||||
uppercase = true
|
||||
|
||||
[node name="ingame_menu" parent="hud" instance=ExtResource( 4 )]
|
||||
[node name="ingame_menu" parent="hud" instance=ExtResource( 6 )]
|
||||
visible = false
|
||||
|
||||
[node name="inventory" type="Spatial" parent="."]
|
||||
script = ExtResource( 5 )
|
||||
editor/display_folded = true
|
||||
script = ExtResource( 7 )
|
||||
|
||||
[node name="viewport" type="Viewport" parent="inventory"]
|
||||
size = Vector2( 150, 150 )
|
||||
@@ -114,11 +146,11 @@ 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 )]
|
||||
[node name="roadStraightLong" parent="inventory/view" instance=ExtResource( 8 )]
|
||||
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 )
|
||||
script = ExtResource( 9 )
|
||||
|
||||
[node name="camera" type="InterpolatedCamera" parent="."]
|
||||
fov = 100.0
|
||||
|
||||
Reference in New Issue
Block a user