mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:55:35 +00:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://b2tihw3iawd2l"]
|
|
|
|
[ext_resource type="Script" uid="uid://b3h7b30kerf60" path="res://Scripts/Interactables/ItemPickup.cs" id="1_j5s0a"]
|
|
[ext_resource type="Resource" uid="uid://dodwpect0ldjf" path="res://Resources/Items/Heart_Pickup.tres" id="3_dqwsj"]
|
|
[ext_resource type="Texture2D" uid="uid://dlkqy5jgchwy" path="res://Sprites/Items/Heart_Pickup.png" id="4_iu1v6"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_16lwt"]
|
|
atlas = ExtResource("4_iu1v6")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_f6vxc"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_16lwt")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="HeartPickup" type="Area2D" groups=["Interactable"]]
|
|
collision_layer = 4
|
|
collision_mask = 2
|
|
script = ExtResource("1_j5s0a")
|
|
LootTable = [ExtResource("3_dqwsj")]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_6vv2s")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_f6vxc")
|
|
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|