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:
parent
3959333534
commit
a1efaf6294
8 changed files with 402 additions and 125 deletions
|
|
@ -5,6 +5,8 @@ var map_height: int = 200
|
|||
var map_width: int = 200
|
||||
var _map_data: Array
|
||||
var _biome_data: Dictionary = {}
|
||||
var _camp_data: Dictionary = {}
|
||||
var spawn_point: Vector3 = Vector3(0, 0, 0)
|
||||
|
||||
# Property for map_data with logging
|
||||
var map_data: Array:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue