Spawn boss

This commit is contained in:
Marco 2025-04-29 18:34:58 +02:00
commit 4aa7c2515c
12 changed files with 128 additions and 49 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=16 format=4 uid="uid://b7oa5icmcetwj"]
[gd_scene load_steps=19 format=4 uid="uid://b7oa5icmcetwj"]
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_84eqy"]
[ext_resource type="Resource" uid="uid://b8lpo4im87rx7" path="res://Resources/RogueliteMaps/Long_Factory.tres" id="2_k6121"]
@ -12,6 +12,8 @@
[ext_resource type="Resource" uid="uid://cqfyuurvqb8m6" path="res://Resources/Enemies/Base_Fairy_Special.tres" id="8_agp2x"]
[ext_resource type="Script" uid="uid://umyqgyxjiaig" path="res://Scripts/Actors/ChestMarker.cs" id="10_3vkr4"]
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="11_oc0wb"]
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="13_ywpvq"]
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="14_6wia5"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
vertices = PackedVector2Array(184, 404, 262, 394, 294, 394, 294, 422, 246, 422, 234, 298, 234, 134, 262, 278, 262, 326, 248, 326, 184, 358, 248, 372, 166, 58, 198, 58, 198, 90, 86, 134, 262, 102, 250, 90, 250, 68, 280, 68, 294, 102, 280, 58, 294, 58, 262, 218, 280, 218, 280, 228, 294, 228, 294, 262, 280, 262, 280, 278, 154, 230, 152, 230, 152, 214, 168, 214, 136, 214, 136, 202, 184, 202, 184, 214, 168, 230, 166, 230, 154, 298, 166, 298, 262, 372, 136, 358, 86, 298, 72, 356, 246, 438, 201, 438, 201, 454, 166, 454, 136, 404, 166, 470, 154, 470, 154, 454, 104, 454, 104, 438, 74, 438, 74, 422, 26, 422, 26, 394, 58, 394, 58, 356, 72, 294, 58, 294, 58, 278, 40, 278, 40, 262, 58, 218, 26, 262, 26, 228, 40, 228, 40, 218, 58, 102, 26, 102, 26, 72, 54, 72, 54, 71, 70, 71, 70, 90, 122, 90, 122, 58, 154, 58, 154, 10, 166, 10)
@ -27,6 +29,10 @@ size = Vector2(272, 406)
atlas = ExtResource("11_oc0wb")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_u0dtp"]
atlas = ExtResource("14_6wia5")
region = Rect2(0, 0, 16, 16)
[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
process_mode = 1
script = ExtResource("1_84eqy")
@ -153,4 +159,9 @@ script = ExtResource("10_3vkr4")
MarkerTexture = SubResource("AtlasTexture_jw5yi")
SpawnChance = 10.0
[node name="Teleporter" type="Marker2D" parent="Features"]
position = Vector2(160, 130)
script = ExtResource("13_ywpvq")
MarkerTexture = SubResource("AtlasTexture_u0dtp")
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]