[gd_scene load_steps=46 format=3 uid="uid://bx0luh4vdob3q"] [ext_resource type="Script" uid="uid://but5aeh7y1s0f" path="res://game/characters/abstract_enemy.gd" id="1_2wrno"] [ext_resource type="Texture2D" uid="uid://drk8j57acajrq" path="res://images/characters/cultist.png" id="2_mocsw"] [ext_resource type="Shader" uid="uid://lqq1mg6l1qqe" path="res://game/shaders/black_n_white.gdshader" id="2_tjvyk"] [ext_resource type="PackedScene" uid="uid://dpvsvsd8pcjqn" path="res://game/player_killer.tscn" id="4_vecdo"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_vecdo"] shader = ExtResource("2_tjvyk") shader_parameter/black_color = Color(0, 0, 0, 1) shader_parameter/white_color = Color(1, 1, 1, 1) shader_parameter/switch_colors = false shader_parameter/threshold = 0.5 shader_parameter/speed = 5.0 shader_parameter/intensity = 1.0 shader_parameter/scale = 20.0 [sub_resource type="AtlasTexture" id="AtlasTexture_l58xb"] atlas = ExtResource("2_mocsw") region = Rect2(0, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_jrclg"] atlas = ExtResource("2_mocsw") region = Rect2(32, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_wwwee"] atlas = ExtResource("2_mocsw") region = Rect2(64, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_law7y"] atlas = ExtResource("2_mocsw") region = Rect2(96, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_hme24"] atlas = ExtResource("2_mocsw") region = Rect2(128, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_qawtf"] atlas = ExtResource("2_mocsw") region = Rect2(160, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_srxh4"] atlas = ExtResource("2_mocsw") region = Rect2(192, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_x6npu"] atlas = ExtResource("2_mocsw") region = Rect2(224, 64, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_xavx3"] atlas = ExtResource("2_mocsw") region = Rect2(0, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_8t4m8"] atlas = ExtResource("2_mocsw") region = Rect2(32, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_3seah"] atlas = ExtResource("2_mocsw") region = Rect2(64, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_koyeg"] atlas = ExtResource("2_mocsw") region = Rect2(96, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_uw3v1"] atlas = ExtResource("2_mocsw") region = Rect2(128, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_265lf"] atlas = ExtResource("2_mocsw") region = Rect2(160, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_tav7c"] atlas = ExtResource("2_mocsw") region = Rect2(192, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_0xs27"] atlas = ExtResource("2_mocsw") region = Rect2(224, 32, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_tjvyk"] atlas = ExtResource("2_mocsw") region = Rect2(128, 96, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_vecdo"] atlas = ExtResource("2_mocsw") region = Rect2(64, 96, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_qly8p"] atlas = ExtResource("2_mocsw") region = Rect2(0, 96, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_klrad"] atlas = ExtResource("2_mocsw") region = Rect2(160, 96, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_rjy0i"] atlas = ExtResource("2_mocsw") region = Rect2(96, 96, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ps2ar"] atlas = ExtResource("2_mocsw") region = Rect2(32, 96, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ijx3p"] atlas = ExtResource("2_mocsw") region = Rect2(0, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_nm8xp"] atlas = ExtResource("2_mocsw") region = Rect2(32, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_mocsw"] atlas = ExtResource("2_mocsw") region = Rect2(128, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_y256a"] atlas = ExtResource("2_mocsw") region = Rect2(160, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_8wpvf"] atlas = ExtResource("2_mocsw") region = Rect2(64, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_vbirv"] atlas = ExtResource("2_mocsw") region = Rect2(0, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ntvg2"] atlas = ExtResource("2_mocsw") region = Rect2(96, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ssc8d"] atlas = ExtResource("2_mocsw") region = Rect2(96, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_hrljr"] atlas = ExtResource("2_mocsw") region = Rect2(0, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ng7ok"] atlas = ExtResource("2_mocsw") region = Rect2(64, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_8s45y"] atlas = ExtResource("2_mocsw") region = Rect2(192, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_qbqct"] atlas = ExtResource("2_mocsw") region = Rect2(128, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ga5mk"] atlas = ExtResource("2_mocsw") region = Rect2(224, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_yu2nn"] atlas = ExtResource("2_mocsw") region = Rect2(224, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_g4v8m"] atlas = ExtResource("2_mocsw") region = Rect2(128, 0, 32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_20lqo"] atlas = ExtResource("2_mocsw") region = Rect2(192, 0, 32, 32) [sub_resource type="SpriteFrames" id="SpriteFrames_2wrno"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_l58xb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jrclg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_wwwee") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_law7y") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hme24") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qawtf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_srxh4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_x6npu") }], "loop": true, "name": &"chase_left", "speed": 20.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_xavx3") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8t4m8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3seah") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_koyeg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uw3v1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_265lf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tav7c") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0xs27") }], "loop": true, "name": &"chase_right", "speed": 20.0 }, { "frames": [{ "duration": 10.0, "texture": SubResource("AtlasTexture_tjvyk") }], "loop": true, "name": &"fall_down", "speed": 5.0 }, { "frames": [{ "duration": 5.0, "texture": SubResource("AtlasTexture_vecdo") }], "loop": true, "name": &"fall_down_left", "speed": 5.0 }, { "frames": [{ "duration": 5.0, "texture": SubResource("AtlasTexture_qly8p") }], "loop": true, "name": &"fall_down_right", "speed": 5.0 }, { "frames": [{ "duration": 5.0, "texture": SubResource("AtlasTexture_klrad") }], "loop": true, "name": &"fall_up", "speed": 5.0 }, { "frames": [{ "duration": 5.0, "texture": SubResource("AtlasTexture_rjy0i") }], "loop": true, "name": &"fall_up_left", "speed": 5.0 }, { "frames": [{ "duration": 5.0, "texture": SubResource("AtlasTexture_ps2ar") }], "loop": true, "name": &"fall_up_right", "speed": 5.0 }, { "frames": [{ "duration": 4.0, "texture": SubResource("AtlasTexture_ijx3p") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_nm8xp") }, { "duration": 5.0, "texture": SubResource("AtlasTexture_ijx3p") }], "loop": true, "name": &"idle_front", "speed": 5.0 }, { "frames": [{ "duration": 4.0, "texture": SubResource("AtlasTexture_mocsw") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_y256a") }, { "duration": 5.0, "texture": SubResource("AtlasTexture_mocsw") }], "loop": true, "name": &"idle_rear", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_8wpvf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_vbirv") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ntvg2") }], "loop": false, "name": &"look_around_front_1", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ssc8d") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hrljr") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ng7ok") }], "loop": false, "name": &"look_around_front_2", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_8s45y") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qbqct") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ga5mk") }], "loop": false, "name": &"look_around_rear_1", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_yu2nn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_g4v8m") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_20lqo") }], "loop": false, "name": &"look_around_rear_2", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_l58xb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jrclg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_wwwee") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_law7y") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hme24") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qawtf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_srxh4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_x6npu") }], "loop": true, "name": &"walk_left", "speed": 10.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_xavx3") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8t4m8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3seah") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_koyeg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uw3v1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_265lf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tav7c") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0xs27") }], "loop": true, "name": &"walk_right", "speed": 10.0 }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_mocsw"] radius = 4.0 height = 28.0 [node name="AbstractEnemy" type="CharacterBody2D"] collision_layer = 0 script = ExtResource("1_2wrno") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] material = SubResource("ShaderMaterial_vecdo") sprite_frames = SubResource("SpriteFrames_2wrno") animation = &"idle_front" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 2) shape = SubResource("CapsuleShape2D_mocsw") [node name="PlayerKiller" parent="." instance=ExtResource("4_vecdo")] [node name="WallCheck" type="Node2D" parent="."] [node name="LeftWallRay" type="RayCast2D" parent="WallCheck"] unique_name_in_owner = true target_position = Vector2(-16, 0) [node name="RightWallRay" type="RayCast2D" parent="WallCheck"] unique_name_in_owner = true target_position = Vector2(16, 0) [node name="PlayerCloseCheck" type="Node2D" parent="."] [node name="LeftPlayerCloseRay" type="RayCast2D" parent="PlayerCloseCheck"] unique_name_in_owner = true target_position = Vector2(-48, 0) collision_mask = 0 [node name="RightPlayerCloseRay" type="RayCast2D" parent="PlayerCloseCheck"] unique_name_in_owner = true target_position = Vector2(48, 0) collision_mask = 0 [node name="PlayerDistantCheck" type="Node2D" parent="."] [node name="LeftPlayerDistantRay" type="RayCast2D" parent="PlayerDistantCheck"] unique_name_in_owner = true target_position = Vector2(-320, 0) collision_mask = 0 [node name="RightPlayerDistantRay" type="RayCast2D" parent="PlayerDistantCheck"] unique_name_in_owner = true target_position = Vector2(320, 0) collision_mask = 0 [connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"] [connection signal="animation_looped" from="AnimatedSprite2D" to="." method="_on_animation_looped"]