mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 07:45:33 +00:00
Spawn boss
This commit is contained in:
parent
a1e87af061
commit
4aa7c2515c
12 changed files with 128 additions and 49 deletions
|
|
@ -1,13 +1,13 @@
|
|||
[gd_resource type="Resource" script_class="EnemyResource" load_steps=6 format=3 uid="uid://ng3lpe8ifbsn"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://xhwfgbv0fjbr" path="res://Sprites/Actors/FairyGuard.png" id="1_7gkmq"]
|
||||
[ext_resource type="Texture2D" uid="uid://p6cs703f5m3n" path="res://ExternalMaterial/RoboBoss/RoboBoss.png" id="1_bmkgj"]
|
||||
[ext_resource type="Script" uid="uid://cq65aed620ijo" path="res://Scripts/Resources/Loot/LootDrop.cs" id="2_3teuq"]
|
||||
[ext_resource type="Resource" uid="uid://b54lru8ulinjl" path="res://Resources/Weapons/EnemyWeapon_Big.tres" id="8_w06jt"]
|
||||
[ext_resource type="Script" uid="uid://cd5o0ceb50jki" path="res://Scripts/Resources/EnemyResource.cs" id="9_vykx5"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n54y5"]
|
||||
atlas = ExtResource("1_7gkmq")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
atlas = ExtResource("1_bmkgj")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("9_vykx5")
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
script = ExtResource("5_2u7yj")
|
||||
RoomName = &"Boss1"
|
||||
Type = 6
|
||||
ScenePath = &"uid://brytwc48xpj78"
|
||||
ScenePath = &"uid://dtoc133avgmpk"
|
||||
Size = Vector2i(1, 1)
|
||||
StartShrouded = true
|
||||
DoorGridPositions = Array[Vector2i]([Vector2i(0, 1)])
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=39 format=3 uid="uid://dt7i3x3g5ktbl"]
|
||||
[gd_scene load_steps=39 format=3 uid="uid://clyrne78j3f5a"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bi2edpdosngll" path="res://Scripts/Components/FSM/Enemy/EnemyFSMProxy.cs" id="1_krhq1"]
|
||||
[ext_resource type="Resource" uid="uid://ng3lpe8ifbsn" path="res://Resources/Enemies/Boss_1.tres" id="2_u32k8"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=17 format=4 uid="uid://24wh7h2dbljf"]
|
||||
[gd_scene load_steps=15 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,8 +9,6 @@
|
|||
[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="PackedScene" uid="uid://dt7i3x3g5ktbl" path="res://Scenes/Actors/Roguelite_Boss_1.tscn" id="10_kublc"]
|
||||
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="11_dbn5e"]
|
||||
[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"]
|
||||
|
|
@ -61,14 +59,6 @@ position = Vector2(248, 56)
|
|||
position = Vector2(216, 55)
|
||||
LootTable = Array[ExtResource("8_dbn5e")]([ExtResource("9_5yebg"), ExtResource("9_5yebg"), ExtResource("9_5yebg"), ExtResource("9_5yebg"), ExtResource("9_5yebg"), ExtResource("9_5yebg")])
|
||||
|
||||
[node name="Boss" parent="Actors" instance=ExtResource("10_kublc")]
|
||||
position = Vector2(217, 106)
|
||||
|
||||
[node name="ControlPad" parent="Actors" node_paths=PackedStringArray("Target") instance=ExtResource("11_dbn5e")]
|
||||
position = Vector2(155, 106)
|
||||
Target = NodePath("../Boss")
|
||||
ActivationType = 1
|
||||
|
||||
[node name="EnemySpawners" type="Node2D" parent="."]
|
||||
|
||||
[node name="PlayerEnterDetector" type="Area2D" parent="."]
|
||||
|
|
@ -96,4 +86,10 @@ offset_bottom = 1.0
|
|||
text = "Boss Debug"
|
||||
label_settings = ExtResource("14_c0yr1")
|
||||
|
||||
[node name="StartTeleporter" type="Marker2D" parent="Features"]
|
||||
position = Vector2(183, 88)
|
||||
script = ExtResource("12_f3e1d")
|
||||
Type = 2
|
||||
MarkerTexture = SubResource("AtlasTexture_5rt6n")
|
||||
|
||||
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=16 format=4 uid="uid://dngwjgs5bhnx7"]
|
||||
[gd_scene load_steps=19 format=4 uid="uid://dngwjgs5bhnx7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_xsqjb"]
|
||||
[ext_resource type="Resource" uid="uid://bv0mr43vcfrdh" path="res://Resources/RogueliteMaps/BigMap.tres" id="2_xsqjb"]
|
||||
|
|
@ -12,11 +12,17 @@
|
|||
[ext_resource type="PackedScene" uid="uid://b0k2grrc8xp1l" path="res://Scenes/Props/BigTank.tscn" id="8_tyndx"]
|
||||
[ext_resource type="Texture2D" uid="uid://qeh4ai8h6sw5" path="res://Sprites/Chest.png" id="9_8vrl3"]
|
||||
[ext_resource type="Resource" uid="uid://cqfyuurvqb8m6" path="res://Resources/Enemies/Base_Fairy_Special.tres" id="9_tyndx"]
|
||||
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="10_1cc4q"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="11_mblqw"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1cc4q"]
|
||||
atlas = ExtResource("9_8vrl3")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h26ay"]
|
||||
atlas = ExtResource("11_mblqw")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_lrgk6"]
|
||||
vertices = PackedVector2Array(358, 230, 248, 212, 326, 211, 378, 211, 426, 230, 314, 211, 262, 211, 520, 244, 534, 234, 614, 234, 614, 262, 550, 262, 520, 198, 534, 134, 457, 182, 457, 232, 390, 138, 442, 138, 248, 166, 262, 114, 166, 58, 179, 58, 179, 77, 168, 102, 249, 77, 249, 88, 202, 118, 168, 118, 294, 88, 294, 90, 378, 114, 330, 90, 330, 88, 360, 88, 374, 106, 360, 84, 374, 84, 442, 58, 474, 58, 518, 122, 504, 182, 474, 10, 486, 10, 486, 58, 518, 58, 570, 122, 570, 90, 614, 90, 585, 118, 614, 118, 585, 134, 504, 198, 326, 114, 314, 114, 472, 232, 472, 244, 550, 294, 486, 294, 486, 310, 474, 310, 474, 294, 426, 294, 358, 262, 313, 262, 313, 278, 248, 278, 246, 265, 248, 294, 246, 294, 216, 212, 200, 265, 202, 234, 168, 260, 200, 294, 166, 294, 154, 282, 154, 260, 166, 310, 154, 310, 154, 294, 56, 262, 26, 262, 26, 186, 42, 186, 42, 102, 26, 102, 26, 58, 57, 58, 57, 88, 86, 88, 86, 102, 54, 102, 54, 186, 86, 186, 86, 234, 88, 234, 88, 260, 56, 294, 102, 260, 102, 282, 168, 244, 184, 244, 184, 234, 138, 102, 138, 58, 154, 58, 154, 10, 166, 10, 216, 166, 390, 106)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 2, 1), PackedInt32Array(6, 5, 1), PackedInt32Array(7, 8, 9, 10, 11), PackedInt32Array(8, 7, 12, 13), PackedInt32Array(14, 15, 4, 3, 16, 17), PackedInt32Array(6, 1, 18, 19), PackedInt32Array(20, 21, 22, 23), PackedInt32Array(23, 22, 24, 25, 26, 27), PackedInt32Array(25, 28, 29, 19, 26), PackedInt32Array(30, 31, 32, 33, 34), PackedInt32Array(33, 35, 36, 34), PackedInt32Array(14, 17, 37, 38, 39, 40), PackedInt32Array(38, 41, 42, 43), PackedInt32Array(43, 44, 39), PackedInt32Array(45, 46, 47, 48), PackedInt32Array(47, 49, 48), PackedInt32Array(45, 48, 50, 13), PackedInt32Array(39, 45, 13), PackedInt32Array(13, 12, 51, 40, 39), PackedInt32Array(52, 2, 5, 53), PackedInt32Array(15, 54, 55), PackedInt32Array(7, 11, 56, 57, 55), PackedInt32Array(57, 58, 59, 60), PackedInt32Array(55, 57, 60), PackedInt32Array(55, 60, 61, 4, 15), PackedInt32Array(0, 62, 63, 1), PackedInt32Array(1, 63, 64, 65, 66), PackedInt32Array(65, 67, 68, 66), PackedInt32Array(69, 1, 66, 70, 71), PackedInt32Array(72, 70, 73, 74, 75, 76), PackedInt32Array(74, 77, 78, 79), PackedInt32Array(80, 81, 82, 83), PackedInt32Array(84, 85, 86, 87, 88), PackedInt32Array(88, 89, 90, 91), PackedInt32Array(84, 88, 91), PackedInt32Array(83, 84, 91, 92), PackedInt32Array(80, 83, 92), PackedInt32Array(80, 92, 93, 94), PackedInt32Array(80, 94, 95, 96, 97), PackedInt32Array(96, 98, 99, 97), PackedInt32Array(72, 100, 101, 70), PackedInt32Array(101, 102, 71, 70), PackedInt32Array(23, 103, 104, 105), PackedInt32Array(105, 106, 107, 20), PackedInt32Array(23, 105, 20), PackedInt32Array(79, 97, 99, 75), PackedInt32Array(74, 79, 75), PackedInt32Array(69, 71, 26, 108), PackedInt32Array(19, 18, 108, 26), PackedInt32Array(53, 19, 29, 31), PackedInt32Array(52, 53, 31), PackedInt32Array(30, 52, 31), PackedInt32Array(30, 34, 109), PackedInt32Array(30, 109, 16, 3), PackedInt32Array(39, 38, 43)])
|
||||
|
|
@ -83,9 +89,6 @@ position = Vector2(352, 184)
|
|||
[node name="Camera" parent="Tilemaps/Actors" instance=ExtResource("7_lrgk6")]
|
||||
position = Vector2(311, 60)
|
||||
|
||||
[node name="ReturnTeleporter" type="Marker2D" parent="."]
|
||||
position = Vector2(320, 168)
|
||||
|
||||
[node name="Features" type="Node2D" parent="."]
|
||||
|
||||
[node name="Chest" type="Marker2D" parent="Features"]
|
||||
|
|
@ -118,6 +121,11 @@ script = ExtResource("8_5i0e8")
|
|||
MarkerTexture = SubResource("AtlasTexture_1cc4q")
|
||||
SpawnChance = 10.0
|
||||
|
||||
[node name="Teleporter" type="Marker2D" parent="Features"]
|
||||
position = Vector2(320, 168)
|
||||
script = ExtResource("10_1cc4q")
|
||||
MarkerTexture = SubResource("AtlasTexture_h26ay")
|
||||
|
||||
[node name="EnemySpawners" type="Node2D" parent="."]
|
||||
|
||||
[node name="RogueliteEnemySpawner6" type="Marker2D" parent="EnemySpawners"]
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@ source_geometry_mode = 1
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cgxuy"]
|
||||
size = Vector2(588, 243)
|
||||
|
||||
[node name="Map" type="Node2D"]
|
||||
[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_7v35i")
|
||||
RoomResource = ExtResource("2_7v35i")
|
||||
RoomClearActivation = []
|
||||
metadata/test_scene = "res://Scenes/Maps/Roguelike.tscn"
|
||||
|
||||
[node name="Tilemaps" type="Node2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@ source_geometry_mode = 1
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_u4oyu"]
|
||||
size = Vector2(915, 245)
|
||||
|
||||
[node name="Map" type="Node2D"]
|
||||
[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_u4oyu")
|
||||
RoomResource = ExtResource("2_u4oyu")
|
||||
RoomClearActivation = []
|
||||
|
||||
[node name="Tilemaps" type="Node2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
[gd_scene load_steps=8 format=4 uid="uid://cv1c7ymi8ab17"]
|
||||
[gd_scene load_steps=11 format=4 uid="uid://cv1c7ymi8ab17"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_36sk4"]
|
||||
[ext_resource type="Resource" uid="uid://cwtma7mxged8a" path="res://Resources/RogueliteMaps/ShopRoom1.tres" id="2_36sk4"]
|
||||
[ext_resource type="PackedScene" uid="uid://cl7s06sk106uo" path="res://Scenes/Props/VendingMachine.tscn" id="5_g23xn"]
|
||||
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_o7s04"]
|
||||
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="6_36sk4"]
|
||||
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_l5c4m"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="7_ii5ao"]
|
||||
|
||||
[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)
|
||||
|
|
@ -16,6 +18,10 @@ source_geometry_mode = 1
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rlq0q"]
|
||||
size = Vector2(272, 85)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_as6dh"]
|
||||
atlas = ExtResource("7_ii5ao")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_36sk4")
|
||||
|
|
@ -65,4 +71,12 @@ collision_mask = 2
|
|||
position = Vector2(162, 94.5)
|
||||
shape = SubResource("RectangleShape2D_rlq0q")
|
||||
|
||||
[node name="Features" type="Node2D" parent="."]
|
||||
|
||||
[node name="Teleporter" type="Marker2D" parent="Features"]
|
||||
position = Vector2(199, 56)
|
||||
script = ExtResource("6_36sk4")
|
||||
Type = 3
|
||||
MarkerTexture = SubResource("AtlasTexture_as6dh")
|
||||
|
||||
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
[gd_scene load_steps=7 format=4 uid="uid://j71ehkbbalh2"]
|
||||
[gd_scene load_steps=10 format=4 uid="uid://j71ehkbbalh2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2j00riayxkit" path="res://Scripts/Controllers/RogueliteRoom.cs" id="1_08gfs"]
|
||||
[ext_resource type="Resource" uid="uid://crqgvauqarfaq" path="res://Resources/RogueliteMaps/TreasureRoom1.tres" id="2_08gfs"]
|
||||
[ext_resource type="Script" uid="uid://g6oraxgd87ij" path="res://Scripts/Actors/TeleporterMarker.cs" id="5_3v6so"]
|
||||
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_ojht1"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3e762pxublbt" path="res://Sprites/teleporter.png" id="6_08gfs"]
|
||||
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_jf212"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_rlq0q"]
|
||||
|
|
@ -15,6 +17,10 @@ source_geometry_mode = 1
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rlq0q"]
|
||||
size = Vector2(272, 85)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_sadsx"]
|
||||
atlas = ExtResource("6_08gfs")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[node name="Map" type="Node2D" node_paths=PackedStringArray("RoomClearActivation")]
|
||||
process_mode = 1
|
||||
script = ExtResource("1_08gfs")
|
||||
|
|
@ -38,7 +44,7 @@ navigation_enabled = false
|
|||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Props" type="TileMapLayer" parent="Tilemaps" groups=["Solid"]]
|
||||
tile_map_data = PackedByteArray("AAAPAAIAAAAJAAwAAAAPAAMAAAAJAA0AAAALAAEAAAAJAAwAAAALAAIAAAAJAA0AAAAAAAMAAAAKAA4AAAAAAAQAAAAKAA8AAAATAAMAAAAKAA4AAAATAAQAAAAKAA8AAAAEAAIAAAAKAAwAAAAEAAMAAAAKAA0AAAAIAAEAAAAKAAwAAAAIAAIAAAAKAA0AAAA=")
|
||||
tile_map_data = PackedByteArray("AAAPAAIAAAAJAAwAAAAPAAMAAAAJAA0AAAALAAEAAAAJAAwAAAALAAIAAAAJAA0AAAAAAAMAAAAKAA4AAAAAAAQAAAAKAA8AAAATAAMAAAAKAA4AAAATAAQAAAAKAA8AAAAEAAIAAAAKAAwAAAAEAAMAAAAKAA0AAAAIAAEAAAAKAAwAAAAIAAIAAAAKAA0AAAAJAAUAAAAGAAAAAAAKAAUAAAAHAAAAAAA=")
|
||||
tile_set = ExtResource("5_ojht1")
|
||||
navigation_enabled = false
|
||||
metadata/_edit_lock_ = true
|
||||
|
|
@ -64,6 +70,14 @@ shape = SubResource("RectangleShape2D_rlq0q")
|
|||
[node name="Treasures" type="Node2D" parent="."]
|
||||
|
||||
[node name="Marker2D" type="Marker2D" parent="Treasures"]
|
||||
position = Vector2(160, 96)
|
||||
position = Vector2(161, 86)
|
||||
|
||||
[node name="Features" type="Node2D" parent="."]
|
||||
|
||||
[node name="Teleporter" type="Marker2D" parent="Features"]
|
||||
position = Vector2(230, 56)
|
||||
script = ExtResource("5_3v6so")
|
||||
Type = 3
|
||||
MarkerTexture = SubResource("AtlasTexture_sadsx")
|
||||
|
||||
[connection signal="area_entered" from="PlayerEnterDetector" to="." method="OnRoomEntered"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using Cirno.Scripts.Components.Actors;
|
||||
using System.Threading.Tasks;
|
||||
using Cirno.Scripts.Components.Actors;
|
||||
using Cirno.Scripts.Components.FSM.Enemy;
|
||||
using Cirno.Scripts.Enums;
|
||||
using Godot;
|
||||
|
|
@ -18,9 +19,17 @@ public partial class Idle : EnemyStateBase
|
|||
public override void EnterState()
|
||||
{
|
||||
base.EnterState();
|
||||
DamageReceiver.ChangeState(false);
|
||||
DamageReceiver.ChangeState(false);
|
||||
GD.Print("Boss idle");
|
||||
_ = DelayStart();
|
||||
}
|
||||
|
||||
private async Task DelayStart()
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
ChangeState(EnemyState.Shooting);
|
||||
}
|
||||
|
||||
public override void ExitState()
|
||||
{
|
||||
base.ExitState();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue