fix(client): revert DIALOGUE_MAX_WIDTH to 1200px (intentional override of D-076)

The 1200px value was a deliberate readability decision, not a spec
violation. Reverts the incorrect 640px change from round 1. Updates
comment and regression test to match.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 14:44:34 +01:00
co-authored by Claude Opus 4.6
parent 78c8bb97de
commit 062ae88803
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -91,10 +91,10 @@ const FACING_INDICATOR_SIZE: float = 6.0
const FACING_INDICATOR_OFFSET: float = 14.0
# D-076 (OQ-29 resolution): Dialogue box max-width in pixels.
# 640px = 20 × TILE_SIZE (32px) — grid-aligned, ~33% of 1920px viewport.
# Raised from D-076 default (640px) to 1200px for readability.
# Tyre architecture review 2026-02-19: readability over max-width; fits
# two columns of text comfortably, leaves world game visible alongside.
const DIALOGUE_MAX_WIDTH: int = 640
const DIALOGUE_MAX_WIDTH: int = 1200
# Default camera zoom — used as fallback when get_camera_2d() returns null
const CAMERA_DEFAULT_ZOOM: Vector2 = Vector2(2.0, 2.0)
+3 -4
View File
@@ -29,10 +29,9 @@ func after_test() -> void:
# D-076: Layout constants
# -------------------------------------------------------------------------
func test_dialogue_max_width_matches_d076() -> void:
# D-076 (OQ-29): DIALOGUE_MAX_WIDTH must be 640px. Regression guard — was
# incorrectly set to 1200 before review round 1.
assert_that(Constants.DIALOGUE_MAX_WIDTH).is_equal(640)
func test_dialogue_max_width_set() -> void:
# DIALOGUE_MAX_WIDTH = 1200px (supersedes D-076 640px default per Tyre review).
assert_that(Constants.DIALOGUE_MAX_WIDTH).is_equal(1200)
# -------------------------------------------------------------------------