mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Improve menuing, and convert ships to RigidBody2D for accurate positioning.
This commit is contained in:
@@ -6,17 +6,20 @@ extends Control
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
#$VBoxContainer/Singleplayer.grab_focus()
|
||||
pass
|
||||
$VBoxContainer/Singleplayer.grab_focus()
|
||||
|
||||
func _on_Singleplayer_pressed():
|
||||
MessageBus.emit_signal("change_scene", "Singleplayer")
|
||||
|
||||
queue_free()
|
||||
|
||||
func _on_Multiplayer_pressed():
|
||||
MessageBus.emit_signal("change_scene", "Multiplayer")
|
||||
queue_free()
|
||||
|
||||
func _on_Options_pressed():
|
||||
MessageBus.emit_signal("change_scene", "Options")
|
||||
queue_free()
|
||||
|
||||
func _on_Quit_pressed():
|
||||
MessageBus.emit_signal("quit")
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user