Mapping and generation fixes

This commit is contained in:
Marco 2025-04-30 15:09:59 +02:00
commit 8c17738371
18 changed files with 628 additions and 53 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=4 uid="uid://24wh7h2dbljf"]
[gd_scene load_steps=18 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"]
@ -9,6 +9,8 @@
[ext_resource type="PackedScene" uid="uid://djf0y08ix66fn" path="res://Scenes/Interactable/Chest.tscn" id="7_kublc"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="8_dbn5e"]
[ext_resource type="Resource" uid="uid://cltxhkrqp055v" path="res://Resources/Items/Money_Pickup.tres" id="9_5yebg"]
[ext_resource type="Script" uid="uid://8umfjejbkcsm" path="res://Scripts/Actors/RogueliteEnemySpawner.cs" id="10_c0yr1"]
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="11_5rt6n"]
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="12_f3e1d"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="13_c0yr1"]
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="14_c0yr1"]
@ -20,6 +22,10 @@ size = Vector2(272, 85)
atlas = ExtResource("13_c0yr1")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_5yebg"]
atlas = ExtResource("13_c0yr1")
region = Rect2(0, 0, 16, 16)
[node name="Tilemaps" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_vhsym")
@ -61,6 +67,11 @@ LootTable = Array[ExtResource("8_dbn5e")]([ExtResource("9_5yebg"), ExtResource("
[node name="EnemySpawners" type="Node2D" parent="."]
[node name="RogueliteEnemySpawner3" type="Marker2D" parent="EnemySpawners"]
position = Vector2(293, 58)
script = ExtResource("10_c0yr1")
Enemy = ExtResource("11_5rt6n")
[node name="PlayerEnterDetector" type="Area2D" parent="."]
visible = false
collision_layer = 0
@ -92,4 +103,19 @@ script = ExtResource("12_f3e1d")
Type = 2
MarkerTexture = SubResource("AtlasTexture_5rt6n")
[node name="Exit" type="Marker2D" parent="Features"]
position = Vector2(40, 136)
script = ExtResource("12_f3e1d")
Type = 5
MarkerTexture = SubResource("AtlasTexture_5yebg")
[node name="Label2" type="Label" parent="Features/Exit"]
z_index = 1
offset_left = -15.0
offset_top = 12.0
offset_right = 37.0
offset_bottom = 35.0
text = "Exit test"
label_settings = ExtResource("14_c0yr1")
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]