mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-06 13:41:16 +00:00
Player detection for rooms
This commit is contained in:
parent
718c20c643
commit
1b31428752
7 changed files with 87 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=9 format=4 uid="uid://c36nvk7cw3emg"]
|
||||
[gd_scene load_steps=10 format=4 uid="uid://c36nvk7cw3emg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_5bd7y"]
|
||||
[ext_resource type="Resource" uid="uid://cjtcksew0qy6d" path="res://Resources/RogueliteMaps/TestRGMapLarge.tres" id="2_5bd7y"]
|
||||
|
|
@ -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_5bd7y"]
|
||||
size = Vector2(909, 85)
|
||||
|
||||
[node name="Map" type="Node2D"]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_5bd7y")
|
||||
|
|
@ -102,3 +105,13 @@ Direction = 3
|
|||
|
||||
[node name="NavigationRegion2D" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("NavigationPolygon_rlq0q")
|
||||
|
||||
[node name="PlayerEnterDetector" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerEnterDetector"]
|
||||
position = Vector2(480.5, 94.5)
|
||||
shape = SubResource("RectangleShape2D_5bd7y")
|
||||
|
||||
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue