GMTK-2024/gmtk_2024/objects/Goal.tscn

29 lines
1 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://d0gpnqknarkg7"]
[ext_resource type="Script" path="res://scripts/goal.gd" id="1_xjaxa"]
[ext_resource type="Texture2D" uid="uid://hsp64ixwg2bb" path="res://temp_assets/goal.png" id="1_y0s3c"]
[ext_resource type="Texture2D" uid="uid://bs8mevd0fornj" path="res://temp_assets/goal_bg.png" id="2_mxvn8"]
[sub_resource type="CircleShape2D" id="CircleShape2D_fjcci"]
radius = 41.0488
[node name="Goal" type="Area2D" node_paths=PackedStringArray("img", "img2")]
scale = Vector2(0.5, 0.5)
collision_layer = 0
collision_mask = 4
script = ExtResource("1_xjaxa")
img = NodePath("GoalImg")
img2 = NodePath("GoalBg")
[node name="GoalBg" type="Sprite2D" parent="."]
z_index = -1
position = Vector2(-4, 0)
texture = ExtResource("2_mxvn8")
[node name="GoalImg" type="Sprite2D" parent="."]
texture = ExtResource("1_y0s3c")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_fjcci")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]