Adds basic camp generation and placement

Adds basic camp generation and placement logic to the map generation process.

It attempts to place the camp in a valid location, avoiding paths and water bodies. It also sets the player's spawn point to the center of the generated camp, including some basic camp props like a tent, campfire, and bed.

Additionally, vegetation spawning is now dependent on the `should_spawn_*` methods of the `CellDataResource`, allowing more control over what spawns where.
This commit is contained in:
Dan Baker 2025-06-29 14:05:48 +01:00
parent 3959333534
commit a1efaf6294
8 changed files with 402 additions and 125 deletions

View file

@ -6,7 +6,8 @@ extends CharacterBody3D
var target_velocity = Vector3.ZERO
func _ready() -> void:
position = Vector3.ZERO
position = Global.spawn_point
%Camp.position = Global.spawn_point
func _physics_process(delta):
RenderingServer.global_shader_parameter_set("player_position", position)