1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-24 17:14:19 +00:00
algodist-steffo-nanogolf/scenes/single_player_tracker.gd

16 lines
405 B
GDScript3
Raw Normal View History

2024-03-07 04:06:37 +00:00
extends MultiplayerSynchronizer
2024-02-27 02:54:47 +00:00
class_name SinglePlayerTracker
2024-03-07 04:06:37 +00:00
## Node representative of a player connected to the room.
##
## The peer of the player this node represents has authority over it.
2024-02-27 02:54:47 +00:00
## The player's name.
var player_name: String = "Player"
## The player's color.
var player_color: Color = Color.WHITE
2024-03-07 04:06:37 +00:00
## Whether this player is currently connected or not.
var player_connected: bool = false