multiplayer
This commit is contained in:
parent
aa35ee5975
commit
0dc6247f91
22 changed files with 298 additions and 14 deletions
13
scripts/gui/lobby/lobby_buttons.gd
Normal file
13
scripts/gui/lobby/lobby_buttons.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends Node
|
||||
|
||||
func _ready() -> void:
|
||||
Lobby.lobby_joined.connect(on_lobby_joined)
|
||||
|
||||
func _on_leave_button_pressed() -> void:
|
||||
Lobby.leave()
|
||||
|
||||
func _on_start_button_pressed() -> void:
|
||||
Lobby.start_game.rpc()
|
||||
|
||||
func on_lobby_joined() -> void:
|
||||
$StartButton.hide()
|
||||
Loading…
Add table
Add a link
Reference in a new issue