2020-07-19 17:19:31 -05:00
|
|
|
[gd_scene load_steps=5 format=2]
|
2020-07-18 17:07:40 -05:00
|
|
|
|
|
|
|
[ext_resource path="res://art/SpinningBone.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://ai/SpinningBone.gd" type="Script" id=2]
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=1]
|
|
|
|
resource_name = "Bone Throw"
|
|
|
|
length = 0.5
|
|
|
|
loop = true
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath(".: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.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ 0, 1 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
2020-07-19 11:58:12 -05:00
|
|
|
radius = 3.0
|
|
|
|
height = 2.0
|
2020-07-18 17:07:40 -05:00
|
|
|
|
2020-07-20 14:30:58 -05:00
|
|
|
[node name="Bone" type="KinematicBody2D"]
|
2020-07-20 14:24:15 -05:00
|
|
|
collision_layer = 16
|
2020-07-20 14:59:31 -05:00
|
|
|
collision_mask = 3
|
2020-07-18 17:07:40 -05:00
|
|
|
script = ExtResource( 2 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="SpinningBone" type="Sprite" parent="."]
|
|
|
|
texture = ExtResource( 1 )
|
|
|
|
hframes = 2
|
|
|
|
frame = 1
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="SpinningBone"]
|
|
|
|
autoplay = "Bone Throw"
|
|
|
|
"anims/Bone Throw" = SubResource( 1 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource( 2 )
|