feat: Remove manual initial pedestrian from level tree
This commit is contained in:
parent
f5ec844a27
commit
3d7353b6b5
1
chunk.gd
1
chunk.gd
|
|
@ -22,7 +22,6 @@ func _ready() -> void:
|
||||||
#building_collision.shape = box_shape
|
#building_collision.shape = box_shape
|
||||||
#building_mesh.mesh = box_mesh
|
#building_mesh.mesh = box_mesh
|
||||||
#$BuildingAreas.add_child(building_area)
|
#$BuildingAreas.add_child(building_area)
|
||||||
#
|
|
||||||
#building_area.add_child(building_collision)
|
#building_area.add_child(building_collision)
|
||||||
#building_collision.add_child(building_mesh)
|
#building_collision.add_child(building_mesh)
|
||||||
|
|
||||||
|
|
|
||||||
3
level.gd
3
level.gd
|
|
@ -39,9 +39,6 @@ func _ready() -> void:
|
||||||
$Player.position.x = spawn.x * Global.chunk_size
|
$Player.position.x = spawn.x * Global.chunk_size
|
||||||
$Player.position.z = spawn.y * 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 = []
|
var paths: Array = []
|
||||||
for path_idx in range(path_count):
|
for path_idx in range(path_count):
|
||||||
var path: Array[Vector2i] = [
|
var path: Array[Vector2i] = [
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
[ext_resource type="Script" uid="uid://dj0cgqed5n3ys" path="res://level.gd" id="1_0b4ue"]
|
[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="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="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"]
|
[sub_resource type="Environment" id="Environment_vonw3"]
|
||||||
ambient_light_source = 2
|
ambient_light_source = 2
|
||||||
|
|
@ -18,9 +17,6 @@ environment = SubResource("Environment_vonw3")
|
||||||
[node name="Player" parent="." unique_id=1536233267 instance=ExtResource("1_u52ul")]
|
[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)
|
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]
|
[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)
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 33, 0)
|
||||||
current = true
|
current = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue