91 lines
2.2 KiB
Plaintext
91 lines
2.2 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://Scenes/Enemies/WalkingEnemy.gd" type="Script" id=1]
|
|
[ext_resource path="res://Assets/Enemies/WalkingEnemy.png" type="Texture" id=2]
|
|
[ext_resource path="res://Scenes/Enemies/Enemy.tscn" type="PackedScene" id=3]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 2, 6 )
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
resource_name = "Walking"
|
|
loop = true
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("../WalkingEnemy/Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.5 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 0, 1 ]
|
|
}
|
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
extents = Vector2( 7, 6 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=4]
|
|
extents = Vector2( 8, 6 )
|
|
|
|
[node name="WalkingEnemy" instance=ExtResource( 3 )]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Sprite" parent="." index="0"]
|
|
position = Vector2( 0, -9 )
|
|
texture = ExtResource( 2 )
|
|
flip_h = true
|
|
hframes = 2
|
|
|
|
[node name="Collider" parent="." index="1"]
|
|
position = Vector2( 0, -6 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="AnimationPlayer" parent="." index="2"]
|
|
autoplay = "Walking"
|
|
anims/Walking = SubResource( 2 )
|
|
|
|
[node name="FloorRight" type="RayCast2D" parent="." index="3"]
|
|
position = Vector2( 2, -1 )
|
|
enabled = true
|
|
cast_to = Vector2( 0, 7 )
|
|
collision_mask = 2
|
|
|
|
[node name="FloorLeft" type="RayCast2D" parent="." index="4"]
|
|
position = Vector2( -2, -1 )
|
|
enabled = true
|
|
cast_to = Vector2( 0, 7 )
|
|
collision_mask = 2
|
|
|
|
[node name="WallRight" type="RayCast2D" parent="." index="5"]
|
|
position = Vector2( 0, -8 )
|
|
enabled = true
|
|
cast_to = Vector2( 6, 0 )
|
|
collision_mask = 2
|
|
|
|
[node name="WallLeft" type="RayCast2D" parent="." index="6"]
|
|
position = Vector2( 0, -8 )
|
|
enabled = true
|
|
cast_to = Vector2( -6, 0 )
|
|
collision_mask = 2
|
|
|
|
[node name="Hurtbox" parent="." index="7"]
|
|
collision_layer = 8
|
|
collision_mask = 0
|
|
|
|
[node name="Collider" parent="Hurtbox" index="0"]
|
|
position = Vector2( 0, -7 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="Collider" parent="Hitbox" index="0"]
|
|
position = Vector2( 0, -8 )
|
|
shape = SubResource( 4 )
|
|
|
|
[node name="EnemyStats" parent="." index="9"]
|
|
max_health = 3
|
|
|
|
[editable path="Hurtbox"]
|
|
|
|
[editable path="Hitbox"]
|