22 lines
841 B
Plaintext
22 lines
841 B
Plaintext
[gd_scene format=3 uid="uid://bnuiagw3bblfh"]
|
|
|
|
[ext_resource type="Script" uid="uid://47y55iry2pd6" path="res://hat_pickup.gd" id="1_fs7cl"]
|
|
[ext_resource type="Texture2D" uid="uid://qm5i00us5qaf" path="res://art/hats/pickup_sprite.png" id="2_fs7cl"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_y0cpo"]
|
|
|
|
[node name="HatPickup" type="Node2D" unique_id=1739014101]
|
|
script = ExtResource("1_fs7cl")
|
|
|
|
[node name="HatSprite" type="Sprite2D" parent="." unique_id=813041394]
|
|
position = Vector2(0, -8)
|
|
texture = ExtResource("2_fs7cl")
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=726438646]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=278855113]
|
|
position = Vector2(0, -7)
|
|
shape = SubResource("CircleShape2D_y0cpo")
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|