mirror of
https://github.com/Yadciel1/2048-Shooter.git
synced 2024-12-26 14:57:02 +01:00
28 lines
821 B
Plaintext
28 lines
821 B
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://Objects/Slot.gd" type="Script" id=1]
|
|
[ext_resource path="res://box.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="StyleBoxTexture" id=2]
|
|
texture = ExtResource( 2 )
|
|
region_rect = Rect2( 0, 0, 8, 8 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
extents = Vector2( 56, 56 )
|
|
|
|
[node name="Slot" type="Panel"]
|
|
margin_right = 128.0
|
|
margin_bottom = 128.0
|
|
rect_min_size = Vector2( 128, 128 )
|
|
rect_pivot_offset = Vector2( 64, 64 )
|
|
custom_styles/panel = SubResource( 2 )
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="slotshape" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="slotshape"]
|
|
position = Vector2( 64, 64 )
|
|
shape = SubResource( 3 )
|
|
|
|
[connection signal="area_entered" from="slotshape" to="." method="_on_slotshape_area_entered"]
|