2020-09-27 20:42:40 +00:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
$CanvasLayer/Control/VBoxContainer/NewGameBtn.grab_focus()
|
|
|
|
|
|
|
|
func _on_ExitGameBtn_pressed() -> void:
|
|
|
|
get_tree().quit(0)
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
func _on_ControlsBtn_pressed() -> void:
|
|
|
|
print("Not working yet")
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
func _on_NewGameBtn_pressed() -> void:
|
2020-10-20 13:51:17 +00:00
|
|
|
GameState.start_new_game(true)
|
2020-09-27 20:42:40 +00:00
|
|
|
queue_free()
|
2020-09-28 21:18:07 +00:00
|
|
|
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
|
|
if Input.is_action_just_pressed("ui_up") or Input.is_action_just_pressed("ui_down"):
|
|
|
|
AudioManager.play_sfx(AudioManager.Sfx.UI_MOVE)
|