Add gas giant resource system
This commit is contained in:
parent
8f7b58f2a8
commit
fc68c4e8cf
9 changed files with 180 additions and 10 deletions
|
|
@ -83,6 +83,8 @@ func _spawn_chunk_planet(chunk: Vector2i) -> void:
|
|||
planet.position = origin + data.local_pos
|
||||
planet.planet_name = data.name
|
||||
planet.shape_seed = data.shape_seed
|
||||
planet.planet_type = String(data.get("planet_type", "rocky"))
|
||||
planet.resource_type = String(data.get("resource_type", "ore"))
|
||||
# Deferred: update_chunks() can run synchronously from inside a
|
||||
# parent's own _ready() chain (forced once right after the fleet is
|
||||
# positioned, to avoid a pop-in on scene load) - Godot refuses a
|
||||
|
|
|
|||
Loading…
Reference in a new issue