File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ var grid_position := Vector2i.ZERO
2727
2828func _ready () -> void :
2929 west_creation_area .body_entered .connect (_on_creation_area_body_entered .bind (& "west" , west_creation_area ))
30- west_transport_area .body_entered .connect (_on_transport_area_body_entered .bind (& "west" ))
30+ west_transport_area .area_entered .connect (_on_transport_area_body_entered .bind (& "west" ))
3131
3232 east_creation_area .body_entered .connect (_on_creation_area_body_entered .bind (& "east" , east_creation_area ))
33- east_transport_area .body_entered .connect (_on_transport_area_body_entered .bind (& "east" ))
33+ east_transport_area .area_entered .connect (_on_transport_area_body_entered .bind (& "east" ))
3434
3535 north_creation_area .body_entered .connect (_on_creation_area_body_entered .bind (& "north" , north_creation_area ))
36- north_transport_area .body_entered .connect (_on_transport_area_body_entered .bind (& "north" ))
36+ north_transport_area .area_entered .connect (_on_transport_area_body_entered .bind (& "north" ))
3737
3838 south_creation_area .body_entered .connect (_on_creation_area_body_entered .bind (& "south" , south_creation_area ))
39- south_transport_area .body_entered .connect (_on_transport_area_body_entered .bind (& "south" ))
39+ south_transport_area .area_entered .connect (_on_transport_area_body_entered .bind (& "south" ))
4040
4141
42- func _on_transport_area_body_entered (_body : Node2D , side : StringName ) -> void :
42+ func _on_transport_area_body_entered (_area : Area2D , side : StringName ) -> void :
4343 transport_requested .emit (self , side )
4444
4545
Original file line number Diff line number Diff line change @@ -86,15 +86,15 @@ shape = SubResource("RectangleShape2D_fafbg")
8686[node name ="WestTransportArea" type ="Area2D" parent ="Transport" unique_id =605026687 ]
8787position = Vector2 (-1218 , 0 )
8888collision_layer = 0
89- collision_mask = 2
89+ collision_mask = 16
9090
9191[node name ="CollisionShape2D" type ="CollisionShape2D" parent ="Transport/WestTransportArea" unique_id =2039810326 ]
9292shape = SubResource ("RectangleShape2D_fafbg" )
9393
9494[node name ="EastTransportArea" type ="Area2D" parent ="Transport" unique_id =1470922658 ]
9595position = Vector2 (1232 , 0 )
9696collision_layer = 0
97- collision_mask = 2
97+ collision_mask = 16
9898
9999[node name ="CollisionShape2D" type ="CollisionShape2D" parent ="Transport/EastTransportArea" unique_id =1089216346 ]
100100position = Vector2 (-18 , 1.25 )
@@ -104,7 +104,7 @@ shape = SubResource("RectangleShape2D_fafbg")
104104position = Vector2 (0 , -1239 )
105105rotation = 1.5707964
106106collision_layer = 0
107- collision_mask = 2
107+ collision_mask = 16
108108
109109[node name ="CollisionShape2D" type ="CollisionShape2D" parent ="Transport/NorthTransportArea" unique_id =1844721722 ]
110110position = Vector2 (25 , 1.25 )
@@ -114,7 +114,7 @@ shape = SubResource("RectangleShape2D_fafbg")
114114position = Vector2 (1 , 1213 )
115115rotation = 1.5707964
116116collision_layer = 0
117- collision_mask = 2
117+ collision_mask = 16
118118
119119[node name ="CollisionShape2D" type ="CollisionShape2D" parent ="Transport/SouthTransportArea" unique_id =1119681408 ]
120120position = Vector2 (1 , 1.25 )
Original file line number Diff line number Diff line change 11class_name GameArea
22extends Node2D
33
4- const ROOM_SPACING = 3000
4+ const ROOM_SPACING = 3250
55const AREA = preload ("uid://b8s7r2s04sqw3" )
66
77@onready var area : ArenaArea = $ Area
You can’t perform that action at this time.
0 commit comments