Also made hidden items visible by default since they will become hidden when the game starts anyway. This way they are visible in the editor.
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
[gd_scene format=3 uid="uid://be757jqlv785s"]
|
|
|
|
[ext_resource type="Script" uid="uid://7qhq76giye1v" path="res://hidden_coin.gd" id="1_4tl78"]
|
|
[ext_resource type="Texture2D" uid="uid://cr2wdd0yn1syy" path="res://art/coin_glow.png" id="2_17b6t"]
|
|
[ext_resource type="Texture2D" uid="uid://dftfxivu3peog" path="res://art/coin.png" id="3_n84lr"]
|
|
[ext_resource type="AudioStream" uid="uid://f2xmq6cgiiwj" path="res://sound/coin.wav" id="4_rxg23"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6qpsl"]
|
|
height = 26.0
|
|
|
|
[node name="HiddenCoin" type="Node2D" unique_id=1739014101 groups=["Hidden"]]
|
|
visible = false
|
|
script = ExtResource("1_4tl78")
|
|
|
|
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=2052227436]
|
|
color = Color(0, 0.5492828, 0.05646421, 1)
|
|
energy = 4.0
|
|
texture = ExtResource("2_17b6t")
|
|
texture_scale = 1.3
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=813041394]
|
|
texture = ExtResource("3_n84lr")
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=170499029]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1865546056]
|
|
shape = SubResource("CapsuleShape2D_6qpsl")
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=1778061188]
|
|
stream = ExtResource("4_rxg23")
|
|
volume_db = 1.0
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="on_contact"]
|