diff --git a/level.gd b/level.gd index b5c1b33..51d5c7b 100644 --- a/level.gd +++ b/level.gd @@ -1,7 +1,9 @@ extends Node3D -@export var dimension: int = 5 +const BASE_DIMENSION: int = 2 + @export var path_count: int = 5 +var dimension: int = BASE_DIMENSION @export var ped_spawn_rate: int = 20 @@ -36,6 +38,8 @@ func _ready() -> void: initialize_world() func initialize_world() -> void: + dimension = BASE_DIMENSION + $Player.stage_counter + # ---- Decide position of Spawn & Station ---- var station = Vector2i(randi() % dimension, 0) var spawn = Vector2i(dimension - station.x - 1, dimension - 1)