summaryrefslogtreecommitdiff
path: root/Stages/Stage.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Stages/Stage.gd')
-rw-r--r--Stages/Stage.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/Stages/Stage.gd b/Stages/Stage.gd
index 9484305..4277bd1 100644
--- a/Stages/Stage.gd
+++ b/Stages/Stage.gd
@@ -9,12 +9,20 @@ static var map: TileMapLayer
static var path_grid: AStarGrid2D
static var last_solid_set_points: Array[Vector2]
+class Settings extends Resource:
+ pass
+var settings: Resource
+
func _init() -> void:
Client.initialize_stage(self)
func _ready() -> void:
+ Client.ready_stage(self)
+
+ multiplayer.peer_disconnected.connect(_on_peer_disconnected)
+
maps = find_children("*", "TileMapLayer")
map = maps[0]
@@ -121,3 +129,7 @@ func get_spawn():
## get target after spawn to overwrite default spawn target
func get_overwrite_target():
pass
+
+
+func _on_peer_disconnected(id):
+ Network._on_peer_disconnected(id)