peak
This commit is contained in:
parent
28766d0a84
commit
46212a7e06
207 changed files with 3998 additions and 31 deletions
45
menu.gd
Normal file
45
menu.gd
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
extends Control
|
||||
|
||||
|
||||
enum Page{
|
||||
main,
|
||||
help,
|
||||
credits,
|
||||
}
|
||||
var page : Page = Page.main
|
||||
@export var helpScreen : Control
|
||||
@export var creditsScreen : Control
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
helpScreen.visible = page == Page.help
|
||||
creditsScreen.visible = page == Page.credits
|
||||
|
||||
|
||||
func _on_start_button_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://game.tscn")
|
||||
|
||||
|
||||
func _on_continue_button_pressed() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_how_to_play_pressed() -> void:
|
||||
page = Page.help
|
||||
|
||||
|
||||
func _on_highscores_pressed() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_credits_pressed() -> void:
|
||||
page = Page.credits
|
||||
|
||||
|
||||
func _on_back_pressed() -> void:
|
||||
page = Page.main
|
||||
Loading…
Add table
Add a link
Reference in a new issue