Rapid echo state-updates (phase-change, turn-tick) arriving with delay=0 used to cancel the pending movement tween, making unit travel instant. Now a delay=0 call only updates _pending_rebuild so the latest state is applied when the existing tween fires; the tween is only cancelled when a new positive delay arrives. Also: password min-length 12→8 (auth), anchor preset cleanup (tscn). Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
316 lines
9.5 KiB
Plaintext
316 lines
9.5 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://b17evi1hw4dqu"]
|
|
|
|
[ext_resource type="Script" uid="uid://b8x84lb58h6gx" path="res://scenes/game/game_screen.gd" id="1_gscr"]
|
|
[ext_resource type="PackedScene" path="res://scenes/game/InGameSettings.tscn" id="2_igs"]
|
|
|
|
[node name="GameScreen" type="Node3D"]
|
|
script = ExtResource("1_gscr")
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 8, 0)
|
|
light_energy = 1.2
|
|
shadow_enabled = true
|
|
|
|
[node name="CameraRig" type="Node3D" parent="."]
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="CameraRig"]
|
|
transform = Transform3D(1, 0, 0, 0, 0.766044, 0.642788, 0, -0.642788, 0.766044, 0, 10, 9)
|
|
|
|
[node name="BoardRoot" type="Node3D" parent="."]
|
|
|
|
[node name="TilesRoot" type="Node3D" parent="BoardRoot"]
|
|
|
|
[node name="UnitsRoot" type="Node3D" parent="BoardRoot"]
|
|
|
|
[node name="HighlightsRoot" type="Node3D" parent="BoardRoot"]
|
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
|
layer = 10
|
|
|
|
[node name="TopBar" type="HBoxContainer" parent="HUD"]
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
offset_bottom = 48.0
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="PhaseLabel" type="Label" parent="HUD/TopBar"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(140, 48)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "Phase: —"
|
|
vertical_alignment = 1
|
|
|
|
[node name="TurnLabel" type="Label" parent="HUD/TopBar"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "Turn 1 — Your turn"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="OpponentPanel" type="HBoxContainer" parent="HUD/TopBar"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(240, 48)
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="OppNameLabel" type="Label" parent="HUD/TopBar/OpponentPanel"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(1, 0.5, 0.5, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Opponent"
|
|
vertical_alignment = 1
|
|
|
|
[node name="OppHandLabel" type="Label" parent="HUD/TopBar/OpponentPanel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Hand: 0"
|
|
vertical_alignment = 1
|
|
|
|
[node name="OppDeckLabel" type="Label" parent="HUD/TopBar/OpponentPanel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Deck: 0"
|
|
vertical_alignment = 1
|
|
|
|
[node name="OppDiscardBtn" type="Button" parent="HUD/TopBar/OpponentPanel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "Discard"
|
|
|
|
[node name="HandArea" type="PanelContainer" parent="HUD"]
|
|
anchors_preset = -1
|
|
anchor_top = 1.0
|
|
anchor_right = 0.75
|
|
anchor_bottom = 1.0
|
|
offset_top = -250.0
|
|
|
|
[node name="HandScroll" type="ScrollContainer" parent="HUD/HandArea"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
vertical_scroll_mode = 0
|
|
|
|
[node name="HandCards" type="HBoxContainer" parent="HUD/HandArea/HandScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="RightPanel" type="PanelContainer" parent="HUD"]
|
|
anchors_preset = -1
|
|
anchor_left = 0.75
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -1.0
|
|
offset_top = -241.0
|
|
offset_right = -1.0
|
|
offset_bottom = 9.0
|
|
scale = Vector2(1, 0.96000004)
|
|
|
|
[node name="RightMargin" type="MarginContainer" parent="HUD/RightPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
[node name="RightVBox" type="VBoxContainer" parent="HUD/RightPanel/RightMargin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="SpLabel" type="Label" parent="HUD/RightPanel/RightMargin/RightVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "SP: 0"
|
|
|
|
[node name="StLabel" type="Label" parent="HUD/RightPanel/RightMargin/RightVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "ST: 0"
|
|
|
|
[node name="DeckLabel" type="Label" parent="HUD/RightPanel/RightMargin/RightVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Deck: 0"
|
|
|
|
[node name="DiscardBtn" type="Button" parent="HUD/RightPanel/RightMargin/RightVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "View Discard"
|
|
|
|
[node name="DrawBtn" type="Button" parent="HUD/RightPanel/RightMargin/RightVBox"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 36)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "Draw Card"
|
|
|
|
[node name="EndTurnBtn" type="Button" parent="HUD/RightPanel/RightMargin/RightVBox"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 36)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "End Turn"
|
|
|
|
[node name="SettingsBtn" type="Button" parent="HUD/RightPanel/RightMargin/RightVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Settings"
|
|
|
|
[node name="ContextPopup" type="PanelContainer" parent="HUD"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -160.0
|
|
offset_top = -120.0
|
|
offset_right = 160.0
|
|
offset_bottom = 120.0
|
|
|
|
[node name="ContextMargin" type="MarginContainer" parent="HUD/ContextPopup"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 12
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 12
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
[node name="ContextVBox" type="VBoxContainer" parent="HUD/ContextPopup/ContextMargin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="ContextTileLabel" type="Label" parent="HUD/ContextPopup/ContextMargin/ContextVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "Tile (0,0) — Void"
|
|
|
|
[node name="ContextUnitLabel" type="Label" parent="HUD/ContextPopup/ContextMargin/ContextVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
autowrap_mode = 3
|
|
|
|
[node name="ContextAbilitiesLabel" type="Label" parent="HUD/ContextPopup/ContextMargin/ContextVBox"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(0.7, 0.7, 0.85, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 11
|
|
autowrap_mode = 3
|
|
|
|
[node name="ContextClose" type="Button" parent="HUD/ContextPopup/ContextMargin/ContextVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 12
|
|
text = "Close"
|
|
|
|
[node name="DiscardViewer" type="PanelContainer" parent="HUD"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
anchors_preset = -1
|
|
anchor_left = 0.1
|
|
anchor_top = 0.05
|
|
anchor_right = 0.9
|
|
anchor_bottom = 0.95
|
|
|
|
[node name="DVMargin" type="MarginContainer" parent="HUD/DiscardViewer"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 16
|
|
theme_override_constants/margin_top = 12
|
|
theme_override_constants/margin_right = 16
|
|
theme_override_constants/margin_bottom = 12
|
|
|
|
[node name="DVVBox" type="VBoxContainer" parent="HUD/DiscardViewer/DVMargin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="DVTitle" type="Label" parent="HUD/DiscardViewer/DVMargin/DVVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "Discard Pile"
|
|
|
|
[node name="DVScroll" type="ScrollContainer" parent="HUD/DiscardViewer/DVMargin/DVVBox"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="DVList" type="VBoxContainer" parent="HUD/DiscardViewer/DVMargin/DVVBox/DVScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="DVCloseBtn" type="Button" parent="HUD/DiscardViewer/DVMargin/DVVBox"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 36)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "Close"
|
|
|
|
[node name="GameOverOverlay" type="PanelContainer" parent="HUD"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
anchors_preset = -1
|
|
anchor_left = 0.25
|
|
anchor_top = 0.25
|
|
anchor_right = 0.75
|
|
anchor_bottom = 0.75
|
|
|
|
[node name="GOMargin" type="MarginContainer" parent="HUD/GameOverOverlay"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 24
|
|
theme_override_constants/margin_top = 24
|
|
theme_override_constants/margin_right = 24
|
|
theme_override_constants/margin_bottom = 24
|
|
|
|
[node name="GOVBox" type="VBoxContainer" parent="HUD/GameOverOverlay/GOMargin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="GOResultLabel" type="Label" parent="HUD/GameOverOverlay/GOMargin/GOVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 28
|
|
text = "Game Over"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="GORankLabel" type="Label" parent="HUD/GameOverOverlay/GOMargin/GOVBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 15
|
|
horizontal_alignment = 1
|
|
|
|
[node name="GOMainMenuBtn" type="Button" parent="HUD/GameOverOverlay/GOMargin/GOVBox"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 15
|
|
text = "Return to Main Menu"
|
|
|
|
[node name="InGameSettings" parent="HUD" instance=ExtResource("2_igs")]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="HoldTimer" type="Timer" parent="."]
|
|
unique_name_in_owner = true
|
|
wait_time = 0.5
|
|
one_shot = true
|