This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
gbjam12/puzzles/button/button.tscn

20 lines
694 B
Plaintext
Raw Normal View History

2024-09-16 23:25:08 +03:00
[gd_scene load_steps=4 format=3 uid="uid://bdlyuun4o4val"]
[ext_resource type="Texture2D" uid="uid://d02y0dsfaynbl" path="res://puzzles/assets/button.png" id="1_atyp4"]
[ext_resource type="Script" path="res://puzzles/button/button.gd" id="1_gpasp"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xj0k4"]
size = Vector2(6, 6)
[node name="Button" type="Area2D"]
script = ExtResource("1_gpasp")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_atyp4")
hframes = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_xj0k4")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]