Browse Source

Adding random seed on first start

pull/1/head v1.1
Ryan Reed 1 year ago
parent
commit
275b7f25f5
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      world.gd

+ 4
- 1
world.gd View File

@ -64,7 +64,10 @@ func _input(event: InputEvent) -> void:
# #
## Update the Gneration UI with the current settings ## Update the Gneration UI with the current settings
func update_generation_ui() -> void: 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_x.text = str(world_size.x)
generation_world_size_y.text = str(world_size.y) generation_world_size_y.text = str(world_size.y)
gneration_cell_size_x.text = str(cell_size.x) gneration_cell_size_x.text = str(cell_size.x)


Loading…
Cancel
Save