12345678910111213141516171819202122232425262728293031323334353637 |
- extends Control
- @onready var tree = get_tree()
- @onready var title = $TitleScreen
- @onready var start = $StartGame
- @onready var options = $Options
- func _on_Start_pressed():
- start.visible = true
- title.visible = false
- func _on_Options_pressed():
- options.prev_menu = title
- options.visible = true
- title.visible = false
- func _on_Exit_pressed():
- tree.quit()
- func _on_RandomBlocks_pressed():
- Settings.world_type = 0
- tree.change_scene_to_packed(preload("res://world/world.tscn"))
- func _on_FlatGrass_pressed():
- Settings.world_type = 1
- tree.change_scene_to_packed(preload("res://world/world.tscn"))
- func _on_BackToTitle_pressed():
- title.visible = true
- start.visible = false
|