mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 17:43:48 +00:00
Door connections
This commit is contained in:
parent
cae1f99949
commit
700be1e207
11 changed files with 127 additions and 149 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=7 format=4 uid="uid://24wh7h2dbljf"]
|
||||
[gd_scene load_steps=8 format=4 uid="uid://24wh7h2dbljf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_vhsym"]
|
||||
[ext_resource type="Resource" uid="uid://dn3ai56rrxfnk" path="res://Resources/RogueliteMaps/Beginner1.tres" id="2_vhsym"]
|
||||
|
|
@ -7,6 +7,9 @@
|
|||
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="4_pys6w"]
|
||||
[ext_resource type="Script" uid="uid://ddry5kjj3fr6c" path="res://Scripts/Controllers/DoorMarker.cs" id="5_mqiea"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_u3c1h"]
|
||||
size = Vector2(272, 85)
|
||||
|
||||
[node name="Tilemaps" type="Node2D"]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_vhsym")
|
||||
|
|
@ -57,3 +60,13 @@ Direction = 2
|
|||
position = Vector2(8.1806, 87.7693)
|
||||
script = ExtResource("5_mqiea")
|
||||
Direction = 3
|
||||
|
||||
[node name="PlayerEnterDetector" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
|
||||
position = Vector2(162, 94.5)
|
||||
shape = SubResource("RectangleShape2D_u3c1h")
|
||||
|
||||
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=9 format=4 uid="uid://dcxrdhq1yw5c7"]
|
||||
[gd_scene load_steps=10 format=4 uid="uid://dcxrdhq1yw5c7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_cak6m"]
|
||||
[ext_resource type="Resource" uid="uid://ly8l7asedjpx" path="res://Resources/RogueliteMaps/TestRGMap2.tres" id="2_cak6m"]
|
||||
|
|
@ -15,6 +15,9 @@ outlines = Array[PackedVector2Array]([PackedVector2Array(17, 36, 14, 12, 47, 15,
|
|||
parsed_collision_mask = 353
|
||||
source_geometry_mode = 1
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wtdf1"]
|
||||
size = Vector2(272, 85)
|
||||
|
||||
[node name="Map" type="Node2D"]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_cak6m")
|
||||
|
|
@ -81,3 +84,13 @@ Direction = 3
|
|||
|
||||
[node name="NavigationRegion2D" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("NavigationPolygon_f7qjl")
|
||||
|
||||
[node name="PlayerEnterDetector" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
|
||||
position = Vector2(162, 94.5)
|
||||
shape = SubResource("RectangleShape2D_wtdf1")
|
||||
|
||||
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue