Skip to content

adj: rebuild HUD layout and typography for clarity and scale - #54

Merged
theghost1980 merged 1 commit into
mainfrom
codex/rebuild-hud-for-clarity-and-scale
Feb 8, 2026
Merged

theghost1980 merged 1 commit into
mainfrom
codex/rebuild-hud-for-clarity-and-scale

Conversation

@saturnoTest

Copy link
Copy Markdown
Member

Motivation

  • Improve HUD visual hierarchy and legibility across desktop and mobile by rebuilding the top HUD panel (stronger typography, larger icons, better spacing and visible borders).
  • Make HUD sizing responsive using a scale derived from the viewport so the bar isn’t too small on desktop or cramped on mobile.
  • Provide subtle full-power feedback for the fish power indicator without changing gameplay, scores, time, coins, or game state logic.

Description

  • Increased HUD geometry and spacing by raising HUD_BASE_HEIGHT to 76, HUD_BASE_PADDING to 20, and updating base gaps and scales for icons and groups. (file: src/scenes/GameScene.ts)
  • Introduced separate base font sizes for score/time/stat (HUD_BASE_SCORE_FONT_SIZE, HUD_BASE_TIME_FONT_SIZE, HUD_BASE_STAT_FONT_SIZE) and wired them into resize flows so typography follows the new hierarchy. (file: src/scenes/GameScene.ts)
  • Added uiScale (clamped between 1 and HUD_MAX_SCALE) to drive responsive sizing of fonts, icon scales, padding, and gaps; applied that scale during applyHudScale/resizeHud flows. (file: src/scenes/GameScene.ts)
  • Replaced the flat HUD look with a framed panel using UI_RECTANGLE_GRADIENT as background and UI_RECTANGLE_DEPTH_LINE as a visible frame with slightly adjusted alpha for a stronger top bar. (file: src/scenes/GameScene.ts)
  • Increased coin/fish icon sizes and adjusted their gaps and right-group layout to keep score (left), time (true centered), and power/coins (right) cleanly separated; layout logic still calculates center and right-group positions to avoid overlap. (file: src/scenes/GameScene.ts)
  • Tweaked full-power fish pulse multiplier to 1.1 and left pulse logic intact so the subtle looping pulse runs when fish power is full. (file: src/scenes/GameScene.ts)

Testing

  • Ran npm run typecheck which completed successfully with no type errors.
  • Ran npm run build which completed successfully (build produced a chunk-size warning but finished).
  • Launched dev server and captured a Playwright screenshot to validate visual layout (dev server started and screenshot was produced).

Codex Task

@saturnoTest
saturnoTest requested a review from a team February 8, 2026 01:03

@theghost1980 theghost1980 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

local test

@theghost1980
theghost1980 merged commit 8028830 into main Feb 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants