New Icon; Touch Controls; Menu with Help; Added Music
This commit is contained in:
parent
9e3349eec3
commit
e87f8c3756
71 changed files with 1084 additions and 278 deletions
|
|
@ -1,11 +1,20 @@
|
|||
extends Node
|
||||
|
||||
var fullscreen = false
|
||||
|
||||
func _ready() -> void:
|
||||
loadStartMenu()
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if G.extracted and get_child(0).name != "EndScreen":
|
||||
loadEndScren()
|
||||
if Input.is_action_just_pressed("fullscreen"):
|
||||
if not fullscreen:
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
|
||||
fullscreen = true
|
||||
elif fullscreen:
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
|
||||
fullscreen = false
|
||||
|
||||
func loadGame():
|
||||
G.resetValues()
|
||||
|
|
@ -18,6 +27,11 @@ func loadEndScren():
|
|||
i.queue_free()
|
||||
add_child(load("res://scenes/menu/endScreen/end_screen.tscn").instantiate())
|
||||
|
||||
func loadHelp():
|
||||
for i in get_children():
|
||||
i.queue_free()
|
||||
add_child(load("res://scenes/menu/help/help.tscn").instantiate())
|
||||
|
||||
|
||||
func loadStartMenu():
|
||||
G.resetValues()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue