More work on maps and multiplayer

This commit is contained in:
2026-01-15 11:10:12 -05:00
parent dc8585b1f0
commit bc48e9cea2
25 changed files with 3740 additions and 136 deletions

View File

@@ -252,18 +252,6 @@ horizontal_alignment = 1
custom_minimum_size = Vector2(150, 0)
layout_mode = 2
[node name="SubViewportContainer" type="SubViewportContainer" parent="Control/PanelContainer/HBoxContainer/OppnentView"]
layout_mode = 2
[node name="SubViewport" type="SubViewport" parent="Control/PanelContainer/HBoxContainer/OppnentView/SubViewportContainer"]
handle_input_locally = false
gui_disable_input = true
render_target_update_mode = 4
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/OppnentView/SubViewportContainer/SubViewport"]
offset_right = 40.0
offset_bottom = 40.0
[node name="VBoxContainer3" type="VBoxContainer" parent="Control/PanelContainer/HBoxContainer"]
custom_minimum_size = Vector2(250, 0)
layout_mode = 2
@@ -272,6 +260,24 @@ layout_mode = 2
custom_minimum_size = Vector2(250, 130)
layout_mode = 2
[node name="SubViewportContainer" type="SubViewportContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3/PanelContainer3"]
layout_mode = 2
[node name="SubViewport" type="SubViewport" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3/PanelContainer3/SubViewportContainer"]
handle_input_locally = false
scaling_3d_mode = 1
fsr_sharpness = 2.0
canvas_item_default_texture_filter = 0
gui_disable_input = true
size = Vector2i(250, 130)
render_target_update_mode = 4
[node name="Camera3D" type="Camera3D" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3/PanelContainer3/SubViewportContainer/SubViewport"]
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 11000, 0)
keep_aspect = 0
projection = 1
size = 25.0
[node name="HBoxContainer" type="HBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer3"]
custom_minimum_size = Vector2(0, 70)
layout_mode = 2

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=35 format=3 uid="uid://c8xf3qawk5c6u"]
[gd_scene load_steps=37 format=3 uid="uid://c8xf3qawk5c6u"]
[ext_resource type="Script" uid="uid://bcs7ygh6s3l35" path="res://scripts/pawn_controller.gd" id="1_h27ep"]
[ext_resource type="Script" uid="uid://wye3mat5y5yg" path="res://scripts/pawn_body.gd" id="2_dn5ph"]
@@ -21,6 +21,7 @@
[ext_resource type="Texture2D" uid="uid://dmnwtwu5v4voh" path="res://visuals/images/icons/detect mark.png" id="19_5822g"]
[ext_resource type="AudioStream" uid="uid://cmnibhyxpag0a" path="res://audio/sounds/BeepBeep_high.wav" id="20_v7o58"]
[ext_resource type="PackedScene" uid="uid://bqwpra5d1faxw" path="res://models/pawns/van_reily.gltf" id="21_dn5ph"]
[ext_resource type="Script" uid="uid://cvuoq81ipid2o" path="res://scripts/pawn_input.gd" id="22_pnc3q"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y646j"]
next_pass = ExtResource("4_8twd3")
@@ -220,6 +221,26 @@ height = 1.0
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 1
properties/1/path = NodePath(".:detecting")
properties/1/spawn = true
properties/1/replication_mode = 1
properties/2/path = NodePath(".:state")
properties/2/spawn = true
properties/2/replication_mode = 1
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_pnc3q"]
properties/0/path = NodePath("PawnInput:dir")
properties/0/spawn = true
properties/0/replication_mode = 1
properties/1/path = NodePath("PawnInput:pressed")
properties/1/spawn = true
properties/1/replication_mode = 1
properties/2/path = NodePath("PawnInput:just_pressed")
properties/2/spawn = true
properties/2/replication_mode = 1
properties/3/path = NodePath("PawnInput:just_released")
properties/3/spawn = true
properties/3/replication_mode = 1
[node name="Player" type="CharacterBody3D" groups=["combat"]]
physics_interpolation_mode = 1
@@ -356,3 +377,8 @@ max_db = -7.0
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_h27ep")
[node name="PawnInput" type="MultiplayerSynchronizer" parent="."]
unique_name_in_owner = true
replication_config = SubResource("SceneReplicationConfig_pnc3q")
script = ExtResource("22_pnc3q")