Find a pair init

This commit is contained in:
GrandPLAY 2025-09-05 22:17:21 +03:00
commit 75603094bb
7 changed files with 133 additions and 61 deletions

View file

@ -1,28 +1,26 @@
[gd_scene load_steps=4 format=3 uid="uid://blfx4g52uaopo"]
[gd_scene load_steps=5 format=3 uid="uid://blfx4g52uaopo"]
[ext_resource type="Texture2D" uid="uid://bsj2xqsrkncfw" path="res://assets/find_a_couple/envelope.png" id="1_dgwjn"]
[ext_resource type="Script" uid="uid://c6slf3hspqeef" path="res://scenes/find_a_couple/tile.gd" id="1_kwys0"]
[ext_resource type="Texture2D" uid="uid://yn1hkayub20t" path="res://assets/find_a_couple/back.png" id="2_npifk"]
[sub_resource type="AtlasTexture" id="AtlasTexture_kwys0"]
atlas = ExtResource("1_dgwjn")
region = Rect2(0, 0, 512, 512)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_npifk"]
size = Vector2(102, 102)
[node name="Button" type="Button"]
offset_left = 428.0
offset_top = 300.0
offset_right = 578.0
offset_bottom = 450.0
[node name="Tile" type="Area2D"]
script = ExtResource("1_kwys0")
front_texture = ExtResource("1_dgwjn")
back_texture = ExtResource("2_npifk")
[node name="Image" type="TextureRect" parent="."]
visible = false
layout_mode = 0
offset_left = 25.0
offset_top = 25.0
offset_right = 125.0
offset_bottom = 125.0
texture = SubResource("AtlasTexture_kwys0")
expand_mode = 1
stretch_mode = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_npifk")
[connection signal="pressed" from="." to="." method="_on_pressed"]
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.2, 0.2)
texture = ExtResource("1_dgwjn")
[node name="Timer" type="Timer" parent="."]
one_shot = true
[connection signal="input_event" from="." to="." method="_on_input_event"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]