NovemberGodotGame/novembergame/scenes/badguy.tscn

75 lines
2.1 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://do41rhebtm7vw"]
[ext_resource type="Script" path="res://scripts/badguy.gd" id="1_3gg16"]
[ext_resource type="Texture2D" uid="uid://da7ap0kxh23js" path="res://assets/graphics/enemies/slime_green.png" id="1_oxuep"]
[sub_resource type="AtlasTexture" id="AtlasTexture_wxa5t"]
atlas = ExtResource("1_oxuep")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_et71u"]
atlas = ExtResource("1_oxuep")
region = Rect2(24, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_ms1qp"]
atlas = ExtResource("1_oxuep")
region = Rect2(48, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_cui8n"]
atlas = ExtResource("1_oxuep")
region = Rect2(72, 24, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_0d1bt"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_wxa5t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_et71u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ms1qp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cui8n")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yg3ku"]
size = Vector2(16.6667, 20)
[node name="Area2D" type="Area2D"]
script = ExtResource("1_3gg16")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_0d1bt")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.711712
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 4)
scale = Vector2(0.840001, 0.8)
shape = SubResource("RectangleShape2D_yg3ku")
[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, 9)
[node name="CastFloorLeft" type="RayCast2D" parent="."]
position = Vector2(-9, 5)
target_position = Vector2(0, 10)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]