oldie/scenes/collectables/Energy.tscn
2022-11-10 00:17:42 -03:00

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, 6.5 )
[node name="Energy" type="Area2D"]
collision_layer = 8
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 3 )
animation = "glow"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( -0.5, -0.5 )
shape = SubResource( 4 )
[connection signal="body_entered" from="." to="." method="OnEnergyBodyEntered"]