New maps and chests

This commit is contained in:
Marco 2025-04-29 12:12:47 +02:00
commit 26a0f51168
28 changed files with 645 additions and 233 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=4 uid="uid://b1d8s1dyvlpea"]
[gd_scene load_steps=12 format=4 uid="uid://b1d8s1dyvlpea"]
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_gia43"]
[ext_resource type="Resource" uid="uid://bxvv82vno8ub1" path="res://Resources/RogueliteMaps/1x1_1.tres" id="2_gia43"]
@ -6,6 +6,8 @@
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="5_wqvtg"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="6_gia43"]
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_wp2g7"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="7_2fric"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="8_tth3t"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(166, 58, 294, 58, 294, 134, 166, 134, 166, 150, 154, 150, 154, 134, 154, 58, 26, 134, 26, 58, 166, 10, 154, 10)
@ -17,10 +19,15 @@ source_geometry_mode = 1
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rlq0q"]
size = Vector2(272, 85)
[node name="Map" type="Node2D"]
[sub_resource type="AtlasTexture" id="AtlasTexture_bl5tn"]
atlas = ExtResource("8_tth3t")
region = Rect2(0, 0, 16, 16)
[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_gia43")
RoomResource = ExtResource("2_gia43")
RoomClearActivation = []
[node name="Tilemaps" type="Node2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
@ -49,18 +56,8 @@ metadata/_edit_lock_ = true
[node name="EnemySpawners" type="Node2D" parent="."]
[node name="RogueliteEnemySpawner4" type="Marker2D" parent="EnemySpawners"]
position = Vector2(91, 63)
script = ExtResource("5_wqvtg")
Enemy = ExtResource("6_gia43")
[node name="RogueliteEnemySpawner5" type="Marker2D" parent="EnemySpawners"]
position = Vector2(235, 127)
script = ExtResource("5_wqvtg")
Enemy = ExtResource("6_gia43")
[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
position = Vector2(117, 130)
position = Vector2(158, 100)
script = ExtResource("5_wqvtg")
Enemy = ExtResource("6_gia43")
@ -79,16 +76,28 @@ shape = SubResource("RectangleShape2D_rlq0q")
[node name="Features" type="Node2D" parent="."]
[node name="Marker2D" type="Marker2D" parent="Features"]
position = Vector2(71, 55)
[node name="Chest" type="Marker2D" parent="Features"]
position = Vector2(72, 56)
script = ExtResource("7_2fric")
MarkerTexture = SubResource("AtlasTexture_bl5tn")
SpawnChance = 10.0
[node name="Marker2D2" type="Marker2D" parent="Features"]
position = Vector2(296, 120)
[node name="Chest2" type="Marker2D" parent="Features"]
position = Vector2(248, 136)
script = ExtResource("7_2fric")
MarkerTexture = SubResource("AtlasTexture_bl5tn")
SpawnChance = 10.0
[node name="Marker2D3" type="Marker2D" parent="Features"]
position = Vector2(40, 119)
[node name="Chest3" type="Marker2D" parent="Features"]
position = Vector2(249, 56)
script = ExtResource("7_2fric")
MarkerTexture = SubResource("AtlasTexture_bl5tn")
SpawnChance = 10.0
[node name="Marker2D4" type="Marker2D" parent="Features"]
position = Vector2(248, 56)
[node name="Chest4" type="Marker2D" parent="Features"]
position = Vector2(56, 136)
script = ExtResource("7_2fric")
MarkerTexture = SubResource("AtlasTexture_bl5tn")
SpawnChance = 10.0
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]