22 lines
795 B
Plaintext
22 lines
795 B
Plaintext
[gd_scene format=3 uid="uid://kstmxoa4dx55"]
|
|
|
|
[ext_resource type="Script" uid="uid://cvboxlqkhn1ef" path="res://coin.gd" id="1_0t63x"]
|
|
[ext_resource type="Texture2D" uid="uid://dftfxivu3peog" path="res://art/coin.png" id="1_d5gmh"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6qpsl"]
|
|
radius = 7.0
|
|
height = 20.0
|
|
|
|
[node name="Coin" type="Node2D" unique_id=1739014101]
|
|
script = ExtResource("1_0t63x")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=813041394]
|
|
texture = ExtResource("1_d5gmh")
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=170499029]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1865546056]
|
|
shape = SubResource("CapsuleShape2D_6qpsl")
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|