mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 06:45:33 +00:00
315 lines
9.9 KiB
Text
315 lines
9.9 KiB
Text
[gd_scene load_steps=43 format=3 uid="uid://bqjcwxene73l2"]
|
|
|
|
[ext_resource type="Script" uid="uid://c2mo5hc1qb6kf" path="res://Scripts/Components/Actors/Actor.cs" id="1_k5cyk"]
|
|
[ext_resource type="Texture2D" uid="uid://hukxr2e63gky" path="res://Sprites/Actors/Robot3.png" id="2_wt8wl"]
|
|
[ext_resource type="Script" uid="uid://tk6ytw246ubg" path="res://Scripts/Components/Actors/EnemyPossessionMovement.cs" id="3_a5upk"]
|
|
[ext_resource type="Script" uid="uid://dq338w2lw5phl" path="res://Scripts/Components/Actors/KeyboardInputProvider.cs" id="4_8bcq6"]
|
|
[ext_resource type="Script" uid="uid://j1oxrc2ftmhe" path="res://Scripts/Components/Actors/AnimationHandler.cs" id="5_c7ovk"]
|
|
[ext_resource type="Script" uid="uid://ghq0lmohdvqf" path="res://Scripts/Components/Actors/ActorAi.cs" id="6_jlcsg"]
|
|
[ext_resource type="Script" uid="uid://dsu7k7ds0cnba" path="res://Scripts/Components/Actors/EnemyNavigationMovement.cs" id="7_fvl12"]
|
|
[ext_resource type="Script" uid="uid://c4qmuxjhheahr" path="res://Scripts/Components/ProximityPlayerDetection.cs" id="8_62r5q"]
|
|
[ext_resource type="Script" uid="uid://cqwvssstkrdmw" path="res://Scripts/Components/Actors/ActorResourceProvider.cs" id="9_2ocwk"]
|
|
[ext_resource type="PackedScene" uid="uid://cj63k0dmk7tl1" path="res://Scenes/Weapons/enemy_weapon_base.tscn" id="10_ehu1c"]
|
|
[ext_resource type="Resource" uid="uid://cdfmedtgp2rcn" path="res://Resources/Weapons/EnemyWeapon.tres" id="11_fvpvx"]
|
|
[ext_resource type="Script" uid="uid://2cijskgyt2xb" path="res://Scripts/Components/Actors/DamageReceiverActorModule.cs" id="12_ox1qk"]
|
|
[ext_resource type="Script" uid="uid://m0ag88kn0c40" path="res://Scripts/Components/Actors/DeathAnimationHandler.cs" id="13_cg7c4"]
|
|
[ext_resource type="Resource" uid="uid://dk2rbf88a5irh" path="res://Resources/Bullets/Explosion_Harmless.tres" id="14_cojbg"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_spe0p"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wjwtx"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3ip5h"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 0, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_48rwl"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 224, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t3srr"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 224, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rfyhw"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 224, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vwjtc"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 32, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_synp8"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 32, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qwhd0"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 32, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ue6d2"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 192, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0ofyy"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 192, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_36xaf"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 192, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_q325s"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 64, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0ao0j"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 64, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7gqg8"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 64, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qjdm5"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 128, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_w72lm"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 128, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p3mq3"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 128, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p7tp3"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 160, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lvaxr"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 160, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_y3l85"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 160, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v1l62"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(0, 96, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_b8g6v"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(16, 96, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ykxak"]
|
|
atlas = ExtResource("2_wt8wl")
|
|
region = Rect2(32, 96, 16, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ix17a"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_spe0p")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wjwtx")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3ip5h")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_down",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_48rwl")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t3srr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rfyhw")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_down_left",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vwjtc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_synp8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qwhd0")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_down_right",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ue6d2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0ofyy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_36xaf")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_left",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_q325s")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0ao0j")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7gqg8")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_right",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qjdm5")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_w72lm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_p3mq3")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_up",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_p7tp3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lvaxr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_y3l85")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_up_left",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v1l62")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_b8g6v")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ykxak")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_up_right",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_2b36v"]
|
|
radius = 5.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_sthwe"]
|
|
radius = 85.0529
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_xyma2"]
|
|
radius = 5.09902
|
|
|
|
[node name="ActorEnemyTest" type="CharacterBody2D"]
|
|
collision_layer = 16
|
|
collision_mask = 113
|
|
script = ExtResource("1_k5cyk")
|
|
MovementSpeed = 30.0
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(0, 4)
|
|
sprite_frames = SubResource("SpriteFrames_ix17a")
|
|
animation = &"walk_down"
|
|
|
|
[node name="MovementProvider" type="Node2D" parent="."]
|
|
script = ExtResource("3_a5upk")
|
|
|
|
[node name="InputProvider" type="Node2D" parent="MovementProvider"]
|
|
script = ExtResource("4_8bcq6")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_2b36v")
|
|
|
|
[node name="AnimationHandler" type="Node2D" parent="." node_paths=PackedStringArray("_animatedSprite")]
|
|
script = ExtResource("5_c7ovk")
|
|
_animatedSprite = NodePath("../AnimatedSprite2D")
|
|
|
|
[node name="ActorAi" type="Node2D" parent="."]
|
|
script = ExtResource("6_jlcsg")
|
|
Ai = 0
|
|
|
|
[node name="NavigationMovementProvider" type="Node2D" parent="." node_paths=PackedStringArray("EquippedWeapon", "_playerDetection")]
|
|
script = ExtResource("7_fvl12")
|
|
_navigationEnabled = true
|
|
CollisionMask = 81
|
|
EquippedWeapon = NodePath("../EnemyWeapon")
|
|
_playerDetection = NodePath("../PlayerDetection")
|
|
|
|
[node name="PlayerDetection" type="Area2D" parent="."]
|
|
visible = false
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
script = ExtResource("8_62r5q")
|
|
|
|
[node name="PlayerDetectionArea" type="CollisionShape2D" parent="PlayerDetection"]
|
|
shape = SubResource("CircleShape2D_sthwe")
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
|
target_desired_distance = 64.0
|
|
path_max_distance = 800.0
|
|
path_postprocessing = 1
|
|
avoidance_enabled = true
|
|
debug_path_custom_color = Color(1, 0, 0, 1)
|
|
|
|
[node name="HealthProvider" type="Node2D" parent="."]
|
|
script = ExtResource("9_2ocwk")
|
|
ResourceName = "Health"
|
|
|
|
[node name="EnemyWeapon" parent="." instance=ExtResource("10_ehu1c")]
|
|
WeaponData = ExtResource("11_fvpvx")
|
|
|
|
[node name="DamageReceiver" type="Node2D" parent="." node_paths=PackedStringArray("HealthProvider")]
|
|
script = ExtResource("12_ox1qk")
|
|
HealthProvider = NodePath("../HealthProvider")
|
|
BulletGroup = 2
|
|
|
|
[node name="Area2D" type="Area2D" parent="DamageReceiver"]
|
|
collision_layer = 16
|
|
collision_mask = 8
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="DamageReceiver/Area2D"]
|
|
shape = SubResource("CircleShape2D_xyma2")
|
|
|
|
[node name="DeathAnimation" type="Node2D" parent="."]
|
|
script = ExtResource("13_cg7c4")
|
|
ExplosionData = ExtResource("14_cojbg")
|
|
|
|
[connection signal="area_entered" from="PlayerDetection" to="PlayerDetection" method="_on_area_entered"]
|
|
[connection signal="area_exited" from="PlayerDetection" to="PlayerDetection" method="_on_area_exited"]
|
|
[connection signal="velocity_computed" from="NavigationAgent2D" to="NavigationMovementProvider" method="_on_navigation_agent_2d_velocity_computed"]
|
|
[connection signal="area_entered" from="DamageReceiver/Area2D" to="DamageReceiver" method="_on_damage_hitbox_area_entered"]
|