This commit is contained in:
Rendo 2026-02-24 01:17:57 +05:00
commit 090de86455
14 changed files with 294 additions and 12 deletions

View file

@ -6,6 +6,10 @@
[ext_resource type="Resource" uid="uid://e7kiu3wcf0ff" path="res://cards/resources/fosma.tres" id="3_u5sy4"]
[ext_resource type="Resource" uid="uid://djqlx7bmcs5gj" path="res://cards/resources/doh.tres" id="4_gee14"]
[ext_resource type="Resource" uid="uid://b6kiwb0marpng" path="res://cards/resources/zlosma.tres" id="5_0tnpc"]
[ext_resource type="Script" uid="uid://rt6mxr30u8tp" path="res://systems/grid.gd" id="7_u5sy4"]
[ext_resource type="Script" uid="uid://bmy5djjmiljhl" path="res://systems/grid_highlighter.gd" id="8_gee14"]
[ext_resource type="Script" uid="uid://c7i44ghoo4kqo" path="res://debug/debug_highlight_tester.gd" id="9_0tnpc"]
[ext_resource type="Texture2D" uid="uid://du3h8ou2sxh6s" path="res://units/fosma/fosma.png" id="10_vtaks"]
[node name="Game" type="Node2D" unique_id=619820575]
@ -13,9 +17,14 @@
texture = ExtResource("1_iywne")
centered = false
[node name="Fosma" type="Sprite2D" parent="." unique_id=128278442]
position = Vector2(511, 278)
texture = ExtResource("10_vtaks")
[node name="PlayerInterface" type="CanvasLayer" parent="." unique_id=269857956]
[node name="Hand" type="Control" parent="PlayerInterface" unique_id=403305026]
visible = false
layout_mode = 3
anchors_preset = 12
anchor_top = 1.0
@ -31,9 +40,10 @@ layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 402.0
offset_right = 515.0
offset_bottom = 169.0
offset_left = 733.9999
offset_top = -168.99997
offset_right = 846.9999
offset_bottom = 3.0517578e-05
card_resource = ExtResource("3_u5sy4")
[node name="Card2" parent="PlayerInterface/Hand" unique_id=1229293312 instance=ExtResource("2_p57ef")]
@ -41,9 +51,10 @@ layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 519.0
offset_right = 632.0
offset_bottom = 169.0
offset_left = 846.9999
offset_top = -168.99997
offset_right = 959.99994
offset_bottom = 3.0517578e-05
card_resource = ExtResource("4_gee14")
[node name="Card4" parent="PlayerInterface/Hand" unique_id=1427311772 instance=ExtResource("2_p57ef")]
@ -51,9 +62,10 @@ layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 804.0
offset_right = 917.0
offset_bottom = 169.0
offset_left = 959.9999
offset_top = -168.99997
offset_right = 1072.9999
offset_bottom = 3.0517578e-05
card_resource = ExtResource("3_u5sy4")
[node name="Card3" parent="PlayerInterface/Hand" unique_id=1907397406 instance=ExtResource("2_p57ef")]
@ -61,7 +73,38 @@ layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 636.0
offset_right = 749.0
offset_bottom = 169.0
offset_left = 1072.9998
offset_top = -168.99997
offset_right = 1185.9998
offset_bottom = 3.0517578e-05
card_resource = ExtResource("5_0tnpc")
[node name="Grid" type="Node2D" parent="." unique_id=1478060666 node_paths=PackedStringArray("right_border_marker")]
position = Vector2(398, 162)
script = ExtResource("7_u5sy4")
rows = 5
columns = 5
right_border_marker = NodePath("../GridMarker")
metadata/_custom_type_script = "uid://rt6mxr30u8tp"
[node name="Highlighter" type="Node2D" parent="Grid" unique_id=69750982]
script = ExtResource("8_gee14")
[node name="GridMarker" type="Marker2D" parent="." unique_id=1656515901]
position = Vector2(801, 567)
[node name="Camera2D" type="Camera2D" parent="." unique_id=1988509991]
position = Vector2(0, 142)
anchor_mode = 0
zoom = Vector2(1.5, 1.5)
[node name="HighlightTester" type="Node2D" parent="." unique_id=729091083 node_paths=PackedStringArray("grid")]
position = Vector2(602, 362)
script = ExtResource("9_0tnpc")
grid = NodePath("../Grid")
[node name="Timer" type="Timer" parent="HighlightTester" unique_id=1589504194]
wait_time = 0.1
autostart = true
[connection signal="timeout" from="HighlightTester/Timer" to="HighlightTester" method="_on_timer_timeout"]