90 lines
2.6 KiB
Plaintext
90 lines
2.6 KiB
Plaintext
[gd_scene load_steps=12 format=3 uid="uid://y54cvugsx75b"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cm8gnfvfysyyl" path="res://Assets/Sprites/Characters/Enemies/stone-Sheet.png" id="1_7puah"]
|
|
[ext_resource type="Script" uid="uid://cu37tswrk107q" path="res://Scripts/Enemies/EnemyMovement.cs" id="2_wtb2n"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ldgsr"]
|
|
atlas = ExtResource("1_7puah")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_o5yvi"]
|
|
atlas = ExtResource("1_7puah")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rku1e"]
|
|
atlas = ExtResource("1_7puah")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rfjv2"]
|
|
atlas = ExtResource("1_7puah")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1phco"]
|
|
atlas = ExtResource("1_7puah")
|
|
region = Rect2(128, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nb51f"]
|
|
atlas = ExtResource("1_7puah")
|
|
region = Rect2(160, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nnt18"]
|
|
atlas = ExtResource("1_7puah")
|
|
region = Rect2(192, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ewbju"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ldgsr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_o5yvi")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rku1e")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rfjv2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1phco")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nb51f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nnt18")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_i6g32"]
|
|
radius = 7.0
|
|
|
|
[node name="RockBoi" type="CharacterBody2D"]
|
|
motion_mode = 1
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
|
path_desired_distance = 1.0
|
|
simplify_path = true
|
|
simplify_epsilon = 0.25
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_ewbju")
|
|
offset = Vector2(0, -16)
|
|
|
|
[node name="Scripts" type="Node" parent="."]
|
|
|
|
[node name="Movement" type="Node" parent="Scripts" node_paths=PackedStringArray("_agent2D", "_body2D")]
|
|
script = ExtResource("2_wtb2n")
|
|
_agent2D = NodePath("../../NavigationAgent2D")
|
|
_body2D = NodePath("../..")
|
|
_speed = 44.59
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -7)
|
|
shape = SubResource("CircleShape2D_i6g32")
|