1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
[gd_scene load_steps=7 format=3 uid="uid://8fbkdifli6ic"]
[ext_resource type="Script" path="res://Scenes/Entities/Objects/Button.gd" id="1_83jjd"]
[ext_resource type="Texture2D" uid="uid://b6ce2eihxulqb" path="res://Assets/Stages/core_set pieces.png" id="2_frejs"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xgggr"]
size = Vector2(12, 7)
[sub_resource type="AtlasTexture" id="AtlasTexture_t47kb"]
atlas = ExtResource("2_frejs")
region = Rect2(272, 512, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_6om1g"]
atlas = ExtResource("2_frejs")
region = Rect2(288, 512, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_moi56"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_t47kb")
}],
"loop": false,
"name": &"default",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6om1g")
}],
"loop": false,
"name": &"pressed",
"speed": 1.0
}]
[node name="Button" type="Area2D"]
z_index = -1
collision_layer = 64
collision_mask = 2
script = ExtResource("1_83jjd")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 1.5)
shape = SubResource("RectangleShape2D_xgggr")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_moi56")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|