1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 13:25:58 +00:00
Boat-Battle/godot_ship/script/title screen/Title Screen.gd

26 lines
587 B
GDScript3
Raw Normal View History

extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
$VBoxContainer/Singleplayer.grab_focus()
func _on_Singleplayer_pressed():
2021-11-01 09:26:17 +00:00
$ButtonSFX.play()
2021-10-20 05:40:31 +00:00
MessageBus.emit_signal("change_scene", "Singleplayer")
queue_free()
func _on_Multiplayer_pressed():
2021-11-01 09:26:17 +00:00
$ButtonSFX.play()
2021-10-20 05:40:31 +00:00
MessageBus.emit_signal("change_scene", "Multiplayer")
queue_free()
func _on_Options_pressed():
2021-11-01 09:26:17 +00:00
$ButtonSFX.play()
2021-10-20 05:40:31 +00:00
MessageBus.emit_signal("change_scene", "Options")
queue_free()
func _on_Quit_pressed():
2021-11-01 09:26:17 +00:00
$ButtonSFX.play()
2021-10-20 05:40:31 +00:00
MessageBus.emit_signal("quit")
queue_free()