55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
[gd_scene load_steps=11 format=2]
|
|
|
|
[ext_resource path="res://assets/collectable/bolt.png" type="Texture" id=1]
|
|
[ext_resource path="res://scenes/collectables/Bolt.cs" type="Script" id=2]
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 16, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 32, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 48, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 64, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 80, 0, 16, 16 )
|
|
|
|
[sub_resource type="SpriteFrames" id=7]
|
|
animations = [ {
|
|
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
|
|
"loop": true,
|
|
"name": "spin",
|
|
"speed": 6.0
|
|
} ]
|
|
|
|
[sub_resource type="CircleShape2D" id=8]
|
|
radius = 5.38516
|
|
|
|
[node name="Bolt" type="Area2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
frames = SubResource( 7 )
|
|
animation = "spin"
|
|
centered = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
position = Vector2( 8, 8 )
|
|
shape = SubResource( 8 )
|
|
|
|
[connection signal="body_entered" from="." to="." method="OnBoltBodyEntered"]
|