Skip to content

Add Civ Lite city management#65

Merged
leocagli merged 5 commits into
Bitcoindefi:mainfrom
YfengJ:codex/city-management-19
Jun 30, 2026
Merged

Add Civ Lite city management#65
leocagli merged 5 commits into
Bitcoindefi:mainfrom
YfengJ:codex/city-management-19

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a tested Civ Lite city economy model for worked tiles, building effects, growth, happiness, amenities, and production spending
  • add a compact City Management sidebar panel with city stats, worked tile summary, yields, and building actions
  • route per-turn city yields through the model, keep player production banked for buildings, and preserve bot auto-recruitment for prototype pressure
  • fix sidebar section shrinking so city management controls cannot overlap the action buttons

Closes #19

Validation

  • node --test demo/civ-lite/city-model.test.mjs
  • node --check demo/civ-lite/city-model.js && node --check demo/civ-lite/game.js && node --check demo/civ-lite/sprites.js
  • git diff --check
  • Playwright/Chrome smoke against local http.server: city panel renders Athens, End Turn is not intercepted by the city panel, production banks over turns, Granary becomes buildable and registers as built, and canvas renders non-empty pixels

@YfengJ

YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

CI follow-up:

  • SonarCloud Code Analysis now passes on latest head 5b8ec61.
  • The remaining red check is the existing Godot Web export preset failure:
    Cannot export project with preset "Web" due to configuration errors

This PR only touches the Civ Lite browser prototype files under demo/civ-lite/, so I do not see a contributor-side code failure in the city management change. I will keep watching for maintainer feedback or any concrete follow-up request.

YfengJ and others added 3 commits June 30, 2026 09:49
@leocagli leocagli merged commit 758e67f 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

Development

Successfully merging this pull request may close these issues.

Gameplay: gestión de ciudad (edificios, distritos, población, felicidad)

2 participants