the-crypt/Items/Wand Pickups/ChargeWandPickup.tscn

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-07-20 00:34:25 -05:00
[gd_scene load_steps=5 format=2]
2020-07-18 00:07:44 -05:00
2020-07-21 20:06:39 -05:00
[ext_resource path="res://Items/Collectable.gd" type="Script" id=1]
2020-07-20 00:28:15 -05:00
[ext_resource path="res://art/Wand.png" type="Texture" id=2]
2020-07-18 00:07:44 -05:00
2020-07-23 19:47:27 -05:00
2020-07-18 00:07:44 -05:00
[sub_resource type="Animation" id=1]
resource_name = "Bounce"
length = 2.0
loop = true
tracks/0/type = "value"
2020-07-20 00:28:15 -05:00
tracks/0/path = NodePath("Sprite:position")
2020-07-18 00:07:44 -05:00
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, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, 2 ), Vector2( 0, -2 ) ]
}
[sub_resource type="CircleShape2D" id=2]
radius = 9.05539
2020-07-20 00:28:15 -05:00
[node name="ChargeWandPickup" type="Area2D"]
2020-07-18 00:07:44 -05:00
monitorable = false
collision_layer = 0
2020-07-20 00:34:25 -05:00
script = ExtResource( 1 )
2020-07-18 00:07:44 -05:00
2020-07-20 00:28:15 -05:00
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
2020-07-18 00:07:44 -05:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Bounce"
anims/Bounce = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[connection signal="body_entered" from="." to="." method="_on_Area2D_body_entered"]