the-crypt/ai/Skeleton Enemy.tscn

69 lines
1.7 KiB
Plaintext
Raw Normal View History

2020-07-18 17:07:40 -05:00
[gd_scene load_steps=5 format=2]
2020-07-18 02:27:01 -05:00
2020-07-18 17:07:40 -05:00
[ext_resource path="res://script/Skeleton Enemy.gd" type="Script" id=1]
[ext_resource path="res://art/Skeleton.png" type="Texture" id=3]
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"
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 ]
}
2020-07-18 02:27:01 -05:00
[node name="Skeleton Enemy" type="KinematicBody2D"]
collision_layer = 4
2020-07-19 19:57:06 -05:00
collision_mask = 11
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="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 = 7
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Skeleton Jump"
"anims/Skeleton Jump" = SubResource( 2 )