Added title screen and onboarding prompt
This commit is contained in:
parent
89c811473b
commit
d1c4c1a35d
7 changed files with 99 additions and 2 deletions
14
scenes/title_screen.gd
Normal file
14
scenes/title_screen.gd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
extends CanvasLayer
|
||||
|
||||
func _ready():
|
||||
get_tree().paused = true
|
||||
|
||||
func _unhandled_input(event):
|
||||
if event is InputEventKey and event.pressed and not event.echo:
|
||||
if event.keycode == KEY_SPACE or event.keycode == KEY_ENTER:
|
||||
_start()
|
||||
|
||||
func _start():
|
||||
get_tree().paused = false
|
||||
EventBus.game_started.emit()
|
||||
queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue