This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2025-07-04 14:24:28 +02:00
|
|
|
class_name GameClient
|
|
|
|
|
extends Node
|
|
|
|
|
|
|
|
|
|
@export var web_client: WebClientTCP
|
|
|
|
|
|
|
|
|
|
var is_host: bool = false
|
|
|
|
|
|
2025-07-06 19:49:08 +02:00
|
|
|
func _on_start_game_button_pressed() -> void:
|
2025-07-04 14:24:28 +02:00
|
|
|
web_client.start_game()
|
2025-07-06 19:49:08 +02:00
|
|
|
|
|
|
|
|
func _on_create_lobby_button_pressed() -> void:
|
|
|
|
|
is_host = true
|
|
|
|
|
|
|
|
|
|
func _on_join_lobby_button_pressed() -> void:
|
|
|
|
|
is_host = false
|