Files
Billiards/scenes/menus/start_menu/start_menu_controls.gd

15 lines
399 B
GDScript

class_name StartMenuControls extends Control
@onready var button_sound: AudioStreamPlayer = $button_sound
func _bttn_mouse_entered() -> void:
button_sound.play(0.0)
func _on_play_bttn_pressed() -> void:
Globals.game_state.set_game_scene("res://scenes/game.tscn")
func _on_multiplayer_bttn_pressed() -> void:
Globals.game_state.set_game_scene("res://scenes/screens/lobby_screen/lobby.tscn")