oldie/scenes/collectables/Energy.tscn

35 lines
837 B
Plaintext

[gd_scene load_steps=6 format=2]
[ext_resource path="res://assets/collectable/energy.png" type="Texture" id=1]
[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="SpriteFrames" id=3]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ) ],
"loop": true,
"name": "glow",
"speed": 4.0
} ]
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 2.5, 6.5 )
[node name="Energy" type="Area2D"]
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 3 )
animation = "glow"
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( -0.5, -0.5 )
shape = SubResource( 4 )