GodotProject/scenes/badguy.tscn

73 lines
2.1 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://b1e3f1x6ma6xj"]
[ext_resource type="Texture2D" uid="uid://c8hsfbd7xivvq" path="res://graphics/enemies/slime_purple.png" id="1_s6gia"]
[ext_resource type="Script" path="res://scripts/badguy.gd" id="1_yw86w"]
[sub_resource type="AtlasTexture" id="AtlasTexture_crt5n"]
atlas = ExtResource("1_s6gia")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_c0cy8"]
atlas = ExtResource("1_s6gia")
region = Rect2(24, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_libug"]
atlas = ExtResource("1_s6gia")
region = Rect2(48, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_c677q"]
atlas = ExtResource("1_s6gia")
region = Rect2(72, 24, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_nefl5"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_crt5n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c0cy8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_libug")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c677q")
}],
"loop": true,
"name": &"default",
"speed": 12.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4hxnd"]
size = Vector2(16, 15)
[node name="Area2D" type="Area2D"]
script = ExtResource("1_yw86w")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_nefl5")
autoplay = "default"
frame_progress = 0.296324
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 4.5)
shape = SubResource("RectangleShape2D_4hxnd")
[node name="RightCast" type="RayCast2D" parent="."]
target_position = Vector2(14, 0)
[node name="LeftCast" type="RayCast2D" parent="."]
target_position = Vector2(-14, 1)
[node name="RightFloorCast" type="RayCast2D" parent="."]
position = Vector2(9, 5)
target_position = Vector2(0, 13)
[node name="LeftFloorCast" type="RayCast2D" parent="."]
position = Vector2(-9, 5)
target_position = Vector2(0, 13)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]