Skip to content

Add Civ-style hex map visuals and HUD#54

Merged
leocagli merged 4 commits into
Bitcoindefi:mainfrom
YfengJ:codex/civ-visual-hud-12-13-14
Jun 30, 2026
Merged

Add Civ-style hex map visuals and HUD#54
leocagli merged 4 commits into
Bitcoindefi:mainfrom
YfengJ:codex/civ-visual-hud-12-13-14

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the civ-lite terrain model with full Civ-style biome tiles, resource overlays, yields, and visibility state
  • expand the canvas renderer with clipped hex terrain sprites, resource markers, territory tinting, unit/city banners, health bars, move/attack overlays, and 3-state fog
  • add the 4X HUD pieces for resource totals/rates, contextual unit/city panels, event log, minimap territory/viewport overlays, and mobile-friendly layout
  • add focused node:test coverage for the terrain model, fog model, empire summary, and HUD markup

Closes #12
Closes #13
Closes #14

Validation

  • node --test demo/civ-lite/civ-model.test.mjs
  • node --check demo/civ-lite/game.js && node --check demo/civ-lite/sprites.js && node --check demo/civ-lite/civ-model.js
  • git diff --check
  • Playwright desktop/mobile smoke test on http://127.0.0.1:4187/demo/civ-lite/ with non-empty canvas pixel sample and visible HUD rates

@YfengJ

YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

CI note: the current Godot Web build failure appears unrelated to this civ-lite change. This PR only changes demo/civ-lite/*, and the same workflow is already failing on upstream main at b86ad79 with Cannot export project with preset "Web" due to configuration errors in make godot-export.

Local validation for the touched civ-lite code passed:

  • node --test demo/civ-lite/civ-model.test.mjs
  • node --check demo/civ-lite/game.js && node --check demo/civ-lite/sprites.js && node --check demo/civ-lite/civ-model.js
  • git diff --check
  • Playwright desktop/mobile smoke test with a non-empty canvas sample and visible HUD rates

@leocagli leocagli merged commit 0ea61d6 into Bitcoindefi:main Jun 30, 2026
1 check passed
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants