NovemberGodotGame/fabigame/scenes/badguy.tscn

74 lines
2.1 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=9 format=3 uid="uid://b0pun5awvst0k"]
[ext_resource type="Texture2D" uid="uid://grew2f48lbpx" path="res://assets/graphics/enemies/slime_green.png" id="1_55ykq"]
[ext_resource type="Script" path="res://scripts/badguy.gd" id="1_i2hx4"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qpxa3"]
atlas = ExtResource("1_55ykq")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_3sedu"]
atlas = ExtResource("1_55ykq")
region = Rect2(24, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_hmqye"]
atlas = ExtResource("1_55ykq")
region = Rect2(48, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_i8j10"]
atlas = ExtResource("1_55ykq")
region = Rect2(72, 24, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_lk04i"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qpxa3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3sedu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hmqye")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i8j10")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_88k5w"]
size = Vector2(14, 14)
[node name="Area2D" type="Area2D"]
script = ExtResource("1_i2hx4")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_lk04i")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.696237
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 5)
shape = SubResource("RectangleShape2D_88k5w")
[node name="CastRight" type="RayCast2D" parent="."]
target_position = Vector2(14, 0)
[node name="CastLeft" type="RayCast2D" parent="."]
target_position = Vector2(-14, 0)
[node name="CastFloorRight" type="RayCast2D" parent="."]
position = Vector2(9, 5)
target_position = Vector2(0, 13)
[node name="CastFloorLeft" type="RayCast2D" parent="."]
position = Vector2(-9, 5)
target_position = Vector2(0, 13)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]