mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
38 lines
646 B
GDScript
38 lines
646 B
GDScript
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("res://world/world.tscn")
|
|
|
|
|
|
func _on_FlatGrass_pressed():
|
|
Settings.world_type = 1
|
|
tree.change_scene("res://world/world.tscn")
|
|
|
|
|
|
func _on_BackToTitle_pressed():
|
|
title.visible = true
|
|
start.visible = false
|