From 275b7f25f5022510aeba628f69ddd64aa9d7bcef Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Fri, 11 Aug 2023 18:13:57 -0400 Subject: [PATCH] Adding random seed on first start --- world.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/world.gd b/world.gd index 2456b03..e818d71 100644 --- a/world.gd +++ b/world.gd @@ -64,7 +64,10 @@ func _input(event: InputEvent) -> void: # ## Update the Gneration UI with the current settings func update_generation_ui() -> void: - generation_seed.text = str(world_seed) + if world_seed: + generation_seed.text = str(world_seed) + else: + generation_seed.text = str(randi()) generation_world_size_x.text = str(world_size.x) generation_world_size_y.text = str(world_size.y) gneration_cell_size_x.text = str(cell_size.x)