the-crypt/ai/Skeleton Enemy.tscn
2020-07-21 15:20:55 -05:00

75 lines
2 KiB
Plaintext

[gd_scene load_steps=7 format=2]
[ext_resource path="res://ai/Skeleton Enemy.gd" type="Script" id=1]
[ext_resource path="res://Music and Fonts(Misc.)/Skeleton Hit.tres" type="Animation" id=2]
[ext_resource path="res://art/Skeleton.png" type="Texture" id=3]
[ext_resource path="res://Music and Fonts(Misc.)/Ogre Hit.tres" type="Animation" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 5, 7 )
[sub_resource type="Animation" id=2]
resource_name = "Skeleton Jump"
length = 0.65
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Skeleton: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.1, 0.2, 0.3, 0.4, 0.5, 0.6 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 1, 2, 3, 4, 5, 6, 7 ]
}
[node name="Skeleton Enemy" type="KinematicBody2D"]
collision_layer = 4
collision_mask = 3
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="RayCast2D" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( -80, 0 )
collision_mask = 3
[node name="RayCast2D2" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 80, 0 )
collision_mask = 3
[node name="RayCast2D3" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( -80, -25 )
collision_mask = 3
[node name="RayCast2D4" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 80, -25 )
collision_mask = 3
[node name="ShootDelay" type="Timer" parent="."]
wait_time = 1.239
one_shot = true
[node name="Position2D" type="Position2D" parent="."]
[node name="Skeleton" type="Sprite" parent="."]
position = Vector2( 1, -1 )
texture = ExtResource( 3 )
hframes = 8
frame = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Skeleton Jump"
"anims/Skeleton Jump" = SubResource( 2 )
[node name="AnimationPlayer2" type="AnimationPlayer" parent="."]
anims/Hit = ExtResource( 4 )
"anims/Skeleton Hit" = ExtResource( 2 )