From 3d7353b6b5778d7ffe7a5d2604f4131f5d71e106 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Wed, 4 Mar 2026 20:49:02 +0100 Subject: [PATCH] feat: Remove manual initial pedestrian from level tree --- chunk.gd | 1 - level.gd | 3 --- level.tscn | 4 ---- 3 files changed, 8 deletions(-) diff --git a/chunk.gd b/chunk.gd index 2559a7e..6e5a65d 100644 --- a/chunk.gd +++ b/chunk.gd @@ -22,7 +22,6 @@ func _ready() -> void: #building_collision.shape = box_shape #building_mesh.mesh = box_mesh #$BuildingAreas.add_child(building_area) -# #building_area.add_child(building_collision) #building_collision.add_child(building_mesh) diff --git a/level.gd b/level.gd index ff781dc..18384a4 100644 --- a/level.gd +++ b/level.gd @@ -39,9 +39,6 @@ func _ready() -> void: $Player.position.x = spawn.x * Global.chunk_size $Player.position.z = spawn.y * Global.chunk_size - $Pedestrian.position.x = spawn.x * Global.chunk_size - $Pedestrian.position.z = spawn.y * Global.chunk_size - var paths: Array = [] for path_idx in range(path_count): var path: Array[Vector2i] = [ diff --git a/level.tscn b/level.tscn index 97ed753..18b4d6c 100644 --- a/level.tscn +++ b/level.tscn @@ -3,7 +3,6 @@ [ext_resource type="Script" uid="uid://dj0cgqed5n3ys" path="res://level.gd" id="1_0b4ue"] [ext_resource type="PackedScene" uid="uid://cmb3b7xrlboy3" path="res://player.tscn" id="1_u52ul"] [ext_resource type="Script" uid="uid://b5ebibi08tjvd" path="res://camera_3d.gd" id="2_vonw3"] -[ext_resource type="PackedScene" uid="uid://c76lhqe6dqq50" path="res://pedestrian.tscn" id="4_f2txt"] [sub_resource type="Environment" id="Environment_vonw3"] ambient_light_source = 2 @@ -18,9 +17,6 @@ environment = SubResource("Environment_vonw3") [node name="Player" parent="." unique_id=1536233267 instance=ExtResource("1_u52ul")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8361101, 0) -[node name="Pedestrian" parent="." unique_id=468620437 instance=ExtResource("4_f2txt")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.219554, 2.045658, 0) - [node name="Camera3D" type="Camera3D" parent="." unique_id=2083164402] transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 33, 0) current = true