summaryrefslogtreecommitdiff
path: root/Stages/Stage.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-11-19 15:24:50 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-11-19 15:24:50 +0100
commit72863ffa31e27f4c6be862d80472cfb897fccaea (patch)
treece04be8d77b10c797c8ff854c8ff1a219eb1af46 /Stages/Stage.gd
parent63d2a59042fb9d90a586ad85d8364de7c38aea8e (diff)
next commitHEADmain
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)