the-crypt/ai/Scenes/Skeleton Enemy.tscn

62 lines
1.7 KiB
Plaintext
Raw Normal View History

2020-07-23 12:16:10 -05:00
[gd_scene load_steps=6 format=2]
2020-07-18 02:27:01 -05:00
2020-07-21 23:22:33 -05:00
[ext_resource path="res://ai/Script/Skeleton Enemy.gd" type="Script" id=1]
2020-07-21 14:50:04 -05:00
[ext_resource path="res://Music and Fonts(Misc.)/Skeleton Hit.tres" type="Animation" id=2]
2020-07-18 17:07:40 -05:00
[ext_resource path="res://art/Skeleton.png" type="Texture" id=3]
2020-07-21 23:22:33 -05:00
2020-07-18 02:27:01 -05:00
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 5, 7 )
2020-07-18 17:07:40 -05:00
[sub_resource type="Animation" id=2]
resource_name = "Skeleton Jump"
2020-07-23 16:16:29 -05:00
length = 0.8
2020-07-18 17:07:40 -05:00
loop = true
tracks/0/type = "value"
2020-07-23 16:16:29 -05:00
tracks/0/path = NodePath("Skeleton:frame")
2020-07-18 17:07:40 -05:00
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
2020-07-23 16:16:29 -05:00
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1 ),
2020-07-18 17:07:40 -05:00
"update": 1,
2020-07-23 16:16:29 -05:00
"values": [ 0, 1, 2, 3, 4, 5, 6, 7 ]
2020-07-18 17:07:40 -05:00
}
2020-07-18 02:27:01 -05:00
[node name="Skeleton Enemy" type="KinematicBody2D"]
collision_layer = 4
2020-07-23 15:32:05 -05:00
collision_mask = 15
2020-07-18 02:27:01 -05:00
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
2020-07-18 17:07:40 -05:00
[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
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Skeleton Jump"
"anims/Skeleton Jump" = SubResource( 2 )
2020-07-21 14:50:04 -05:00
[node name="AnimationPlayer2" type="AnimationPlayer" parent="."]
2020-07-23 12:16:10 -05:00
anims/Hit = ExtResource( 2 )