oldie/scenes/collectables/Energy.tscn

39 lines
1.0 KiB
Plaintext

[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/collectable/energy.png" type="Texture" id=1]
[ext_resource path="res://scenes/collectables/Energy.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="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, 5.75 )
[node name="Energy" type="Area2D"]
collision_layer = 8
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 3 )
animation = "glow"
centered = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 7.5, 7.25 )
shape = SubResource( 4 )
[connection signal="body_entered" from="." to="." method="OnEnergyBodyEntered"]