From 6cdea75dbb0f379479d1eac3bd18f4e987ccf4f7 Mon Sep 17 00:00:00 2001 From: 3002102 <3002102@stud.hs-mannheim.de> Date: Wed, 15 Apr 2026 17:04:32 +0200 Subject: [PATCH] add new fire slime with three hp --- scenes/fire_slime.tscn | 752 ++++++++++++++++++++++++++++++++++++++ scripts/fire_slime.gd | 17 + scripts/fire_slime.gd.uid | 1 + 3 files changed, 770 insertions(+) create mode 100644 scenes/fire_slime.tscn create mode 100644 scripts/fire_slime.gd create mode 100644 scripts/fire_slime.gd.uid diff --git a/scenes/fire_slime.tscn b/scenes/fire_slime.tscn new file mode 100644 index 0000000..76be65b --- /dev/null +++ b/scenes/fire_slime.tscn @@ -0,0 +1,752 @@ +[gd_scene format=3 uid="uid://cpe6aiuqiox0u"] + +[ext_resource type="Script" uid="uid://dklt42vjjcks7" path="res://scripts/fire_slime.gd" id="1_88j2t"] +[ext_resource type="Texture2D" uid="uid://b1tyfy8ooudkc" path="res://assets/Slime3/With_shadow/Slime3_Death_with_shadow.png" id="2_ahfdi"] +[ext_resource type="Texture2D" uid="uid://bbm1sv6hmc2j" path="res://assets/Slime3/With_shadow/Slime3_Hurt_with_shadow.png" id="3_kq38e"] +[ext_resource type="Texture2D" uid="uid://bt07131sttb6e" path="res://assets/Slime3/With_shadow/Slime3_Walk_with_shadow.png" id="4_ret1g"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_u74be"] +atlas = ExtResource("2_ahfdi") +region = Rect2(0, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hky14"] +atlas = ExtResource("2_ahfdi") +region = Rect2(64, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1hmrm"] +atlas = ExtResource("2_ahfdi") +region = Rect2(128, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_icdnf"] +atlas = ExtResource("2_ahfdi") +region = Rect2(192, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jpau6"] +atlas = ExtResource("2_ahfdi") +region = Rect2(256, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pla0y"] +atlas = ExtResource("2_ahfdi") +region = Rect2(320, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5ug5i"] +atlas = ExtResource("2_ahfdi") +region = Rect2(384, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_p0q1e"] +atlas = ExtResource("2_ahfdi") +region = Rect2(448, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8gdmr"] +atlas = ExtResource("2_ahfdi") +region = Rect2(512, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4gxlk"] +atlas = ExtResource("2_ahfdi") +region = Rect2(576, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_w642b"] +atlas = ExtResource("2_ahfdi") +region = Rect2(256, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6tf61"] +atlas = ExtResource("2_ahfdi") +region = Rect2(0, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_354yo"] +atlas = ExtResource("2_ahfdi") +region = Rect2(64, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wrhhh"] +atlas = ExtResource("2_ahfdi") +region = Rect2(128, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5l6b7"] +atlas = ExtResource("2_ahfdi") +region = Rect2(192, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ml8lr"] +atlas = ExtResource("2_ahfdi") +region = Rect2(256, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_flrsr"] +atlas = ExtResource("2_ahfdi") +region = Rect2(320, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_qr4cj"] +atlas = ExtResource("2_ahfdi") +region = Rect2(384, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_o5jey"] +atlas = ExtResource("2_ahfdi") +region = Rect2(448, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1fjmf"] +atlas = ExtResource("2_ahfdi") +region = Rect2(512, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_3dxre"] +atlas = ExtResource("2_ahfdi") +region = Rect2(576, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6mupu"] +atlas = ExtResource("2_ahfdi") +region = Rect2(0, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_cpqhb"] +atlas = ExtResource("2_ahfdi") +region = Rect2(64, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vpjp1"] +atlas = ExtResource("2_ahfdi") +region = Rect2(128, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pyvbc"] +atlas = ExtResource("2_ahfdi") +region = Rect2(192, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_t8xj5"] +atlas = ExtResource("2_ahfdi") +region = Rect2(256, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_uq6gh"] +atlas = ExtResource("2_ahfdi") +region = Rect2(320, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_q6wog"] +atlas = ExtResource("2_ahfdi") +region = Rect2(384, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jcate"] +atlas = ExtResource("2_ahfdi") +region = Rect2(448, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hl62h"] +atlas = ExtResource("2_ahfdi") +region = Rect2(512, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_60nri"] +atlas = ExtResource("2_ahfdi") +region = Rect2(576, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_60moo"] +atlas = ExtResource("2_ahfdi") +region = Rect2(0, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pguj2"] +atlas = ExtResource("2_ahfdi") +region = Rect2(64, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ybskn"] +atlas = ExtResource("2_ahfdi") +region = Rect2(128, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_el31c"] +atlas = ExtResource("2_ahfdi") +region = Rect2(192, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7hu85"] +atlas = ExtResource("2_ahfdi") +region = Rect2(256, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fuihh"] +atlas = ExtResource("2_ahfdi") +region = Rect2(320, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mtyhi"] +atlas = ExtResource("2_ahfdi") +region = Rect2(384, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_sjkfo"] +atlas = ExtResource("2_ahfdi") +region = Rect2(448, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_htj0k"] +atlas = ExtResource("2_ahfdi") +region = Rect2(512, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6hck2"] +atlas = ExtResource("2_ahfdi") +region = Rect2(576, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0ksjp"] +atlas = ExtResource("3_kq38e") +region = Rect2(0, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_i4a22"] +atlas = ExtResource("3_kq38e") +region = Rect2(64, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_o8li6"] +atlas = ExtResource("3_kq38e") +region = Rect2(128, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_g0evx"] +atlas = ExtResource("3_kq38e") +region = Rect2(192, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rdhnu"] +atlas = ExtResource("3_kq38e") +region = Rect2(256, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_84ews"] +atlas = ExtResource("3_kq38e") +region = Rect2(0, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1xfj1"] +atlas = ExtResource("3_kq38e") +region = Rect2(64, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_trrl8"] +atlas = ExtResource("3_kq38e") +region = Rect2(128, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_lr5qx"] +atlas = ExtResource("3_kq38e") +region = Rect2(192, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6ma40"] +atlas = ExtResource("3_kq38e") +region = Rect2(256, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_kwtft"] +atlas = ExtResource("3_kq38e") +region = Rect2(128, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_enu58"] +atlas = ExtResource("3_kq38e") +region = Rect2(0, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7kdux"] +atlas = ExtResource("3_kq38e") +region = Rect2(64, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bqnxo"] +atlas = ExtResource("3_kq38e") +region = Rect2(128, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_enu87"] +atlas = ExtResource("3_kq38e") +region = Rect2(192, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2h6h5"] +atlas = ExtResource("3_kq38e") +region = Rect2(256, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8fjfh"] +atlas = ExtResource("3_kq38e") +region = Rect2(0, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_vh8hy"] +atlas = ExtResource("3_kq38e") +region = Rect2(64, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_2rs53"] +atlas = ExtResource("3_kq38e") +region = Rect2(128, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6qhe6"] +atlas = ExtResource("3_kq38e") +region = Rect2(192, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5ch0i"] +atlas = ExtResource("3_kq38e") +region = Rect2(256, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ugw68"] +atlas = ExtResource("4_ret1g") +region = Rect2(0, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_osbva"] +atlas = ExtResource("4_ret1g") +region = Rect2(64, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_e2rds"] +atlas = ExtResource("4_ret1g") +region = Rect2(128, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8jpri"] +atlas = ExtResource("4_ret1g") +region = Rect2(192, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_p46gn"] +atlas = ExtResource("4_ret1g") +region = Rect2(256, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_tmsf0"] +atlas = ExtResource("4_ret1g") +region = Rect2(320, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8jftq"] +atlas = ExtResource("4_ret1g") +region = Rect2(384, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5xakg"] +atlas = ExtResource("4_ret1g") +region = Rect2(448, 0, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wjesj"] +atlas = ExtResource("4_ret1g") +region = Rect2(0, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_xicij"] +atlas = ExtResource("4_ret1g") +region = Rect2(64, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_wt4kn"] +atlas = ExtResource("4_ret1g") +region = Rect2(128, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_dfaft"] +atlas = ExtResource("4_ret1g") +region = Rect2(192, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_01vj4"] +atlas = ExtResource("4_ret1g") +region = Rect2(256, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fevc3"] +atlas = ExtResource("4_ret1g") +region = Rect2(320, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_o8mkr"] +atlas = ExtResource("4_ret1g") +region = Rect2(384, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_khlie"] +atlas = ExtResource("4_ret1g") +region = Rect2(448, 128, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_rt0q0"] +atlas = ExtResource("4_ret1g") +region = Rect2(0, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_b1gjj"] +atlas = ExtResource("4_ret1g") +region = Rect2(64, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bt6g4"] +atlas = ExtResource("4_ret1g") +region = Rect2(128, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jsjsv"] +atlas = ExtResource("4_ret1g") +region = Rect2(192, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0l68k"] +atlas = ExtResource("4_ret1g") +region = Rect2(256, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_iimw2"] +atlas = ExtResource("4_ret1g") +region = Rect2(320, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jlqmn"] +atlas = ExtResource("4_ret1g") +region = Rect2(384, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gctn2"] +atlas = ExtResource("4_ret1g") +region = Rect2(448, 192, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x6bpc"] +atlas = ExtResource("4_ret1g") +region = Rect2(0, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_23if8"] +atlas = ExtResource("4_ret1g") +region = Rect2(64, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1wf5b"] +atlas = ExtResource("4_ret1g") +region = Rect2(128, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_263iu"] +atlas = ExtResource("4_ret1g") +region = Rect2(192, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_gk0vp"] +atlas = ExtResource("4_ret1g") +region = Rect2(256, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_n30n6"] +atlas = ExtResource("4_ret1g") +region = Rect2(320, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_an4xw"] +atlas = ExtResource("4_ret1g") +region = Rect2(384, 64, 64, 64) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ohh0e"] +atlas = ExtResource("4_ret1g") +region = Rect2(448, 64, 64, 64) + +[sub_resource type="SpriteFrames" id="SpriteFrames_05veu"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_u74be") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_hky14") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1hmrm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_icdnf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jpau6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pla0y") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5ug5i") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_p0q1e") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8gdmr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4gxlk") +}], +"loop": true, +"name": &"death_down", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_w642b") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6tf61") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_354yo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wrhhh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5l6b7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ml8lr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_flrsr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_qr4cj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_o5jey") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1fjmf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_3dxre") +}], +"loop": true, +"name": &"death_left", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_6mupu") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_cpqhb") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vpjp1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pyvbc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_t8xj5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_uq6gh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_q6wog") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jcate") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_hl62h") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_60nri") +}], +"loop": true, +"name": &"death_right", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_60moo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pguj2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ybskn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_el31c") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7hu85") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fuihh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_mtyhi") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_sjkfo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_htj0k") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6hck2") +}], +"loop": true, +"name": &"death_up", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_0ksjp") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_i4a22") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_o8li6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_g0evx") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_rdhnu") +}], +"loop": true, +"name": &"hurt_down", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_84ews") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1xfj1") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_trrl8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_lr5qx") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6ma40") +}], +"loop": true, +"name": &"hurt_left", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_kwtft") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_enu58") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7kdux") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bqnxo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_enu87") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2h6h5") +}], +"loop": true, +"name": &"hurt_right", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_8fjfh") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_vh8hy") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_2rs53") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6qhe6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5ch0i") +}], +"loop": true, +"name": &"hurt_up", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ugw68") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_osbva") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_e2rds") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8jpri") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_p46gn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_tmsf0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8jftq") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5xakg") +}], +"loop": true, +"name": &"walk_down", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_wjesj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_xicij") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_wt4kn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_dfaft") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_01vj4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_fevc3") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_o8mkr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_khlie") +}], +"loop": true, +"name": &"walk_left", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_rt0q0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_b1gjj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bt6g4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jsjsv") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0l68k") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_iimw2") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jlqmn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gctn2") +}], +"loop": true, +"name": &"walk_right", +"speed": 10.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_x6bpc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_23if8") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1wf5b") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_263iu") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_gk0vp") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_n30n6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_an4xw") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ohh0e") +}], +"loop": true, +"name": &"walk_up", +"speed": 10.0 +}] + +[sub_resource type="CircleShape2D" id="CircleShape2D_1djsx"] +radius = 7.071068 + +[sub_resource type="CircleShape2D" id="CircleShape2D_odbmi"] +radius = 8.062258 + +[node name="FireSlime" type="CharacterBody2D" unique_id=1827403107] +script = ExtResource("1_88j2t") +metadata/_custom_type_script = "uid://c0uv02nt5ocvg" + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1151813585] +texture_filter = 1 +sprite_frames = SubResource("SpriteFrames_05veu") +animation = &"walk_down" + +[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2114857632] +position = Vector2(0, 1) +shape = SubResource("CircleShape2D_1djsx") + +[node name="Area2D" type="Area2D" parent="." unique_id=1305327123] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=762851125] +position = Vector2(0, 1) +shape = SubResource("CircleShape2D_odbmi") diff --git a/scripts/fire_slime.gd b/scripts/fire_slime.gd new file mode 100644 index 0000000..7aed123 --- /dev/null +++ b/scripts/fire_slime.gd @@ -0,0 +1,17 @@ +extends EnemyBase + + +func _ready() -> void: + super() + speed = 0.1 + hits_remaining = 3 + $Area2D.body_entered.connect(_on_area_2d_body_entered) + +func _process(delta: float) -> void: + if is_dying or is_hurt: + return + _chase_witch() + +func _on_area_2d_body_entered(body: Node2D) -> void: + if body == player: + hit() diff --git a/scripts/fire_slime.gd.uid b/scripts/fire_slime.gd.uid new file mode 100644 index 0000000..5292dd9 --- /dev/null +++ b/scripts/fire_slime.gd.uid @@ -0,0 +1 @@ +uid://dklt42vjjcks7