-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgem.tscn
38 lines (29 loc) · 1.29 KB
/
gem.tscn
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
[gd_scene load_steps=7 format=3 uid="uid://dypev0qrj3e6s"]
[ext_resource type="Texture2D" uid="uid://cmyw7fmkbaox3" path="res://monochrome_tilemap_transparent.png" id="1_5m8k5"]
[ext_resource type="Script" path="res://gem.gd" id="1_606fa"]
[ext_resource type="AudioStream" uid="uid://dxjgadwscnl7q" path="res://gem.wav" id="3_hfxuq"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_341ky"]
size = Vector2(10, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_nmvpb"]
atlas = ExtResource("1_5m8k5")
region = Rect2(34, 85, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_bhs42"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_nmvpb")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="Gem" type="Area2D"]
script = ExtResource("1_606fa")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_341ky")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_bhs42")
[node name="CollectedSfx" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_hfxuq")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="finished" from="CollectedSfx" to="." method="_on_collected_sfx_finished"]