Skip to content

Add Civ Lite technology tree gameplay#56

Merged
leocagli merged 4 commits into
Bitcoindefi:mainfrom
YfengJ:codex/civ-tech-tree-15
Jun 30, 2026
Merged

Add Civ Lite technology tree gameplay#56
leocagli merged 4 commits into
Bitcoindefi:mainfrom
YfengJ:codex/civ-tech-tree-15

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a compact Civ-style technology tree model with prerequisites, science costs, unlocks, research statuses, and deterministic bot technology choice
  • wire the player and bot turn loops so science income advances current research and completed tech unlocks stronger trainable units
  • add a Technology sidebar panel with researched / available / blocked / in-progress states and selectable research buttons
  • add focused node:test coverage for tech prerequisites, research progress, unlocks, bot choices, and markup

Closes #15

Notes

  • scoped to demo/civ-lite/* gameplay and UI
  • does not touch wallet, payment, identity, API-key, or Web3 reward flows

Validation

  • node --test demo/civ-lite/tech-model.test.mjs
  • node --check demo/civ-lite/game.js && node --check demo/civ-lite/sprites.js && node --check demo/civ-lite/tech-model.js
  • git diff --cached --check
  • Playwright smoke test on http://127.0.0.1:4195/demo/civ-lite/: Technology panel rendered, Archery selection updated current research, canvas pixel sample was non-empty

@YfengJ

YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

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

Local validation for this PR passed:

  • node --test demo/civ-lite/tech-model.test.mjs
  • node --check demo/civ-lite/game.js && node --check demo/civ-lite/sprites.js && node --check demo/civ-lite/tech-model.js
  • git diff --cached --check
  • Playwright smoke test: technology panel rendered, Archery selection updated current research, and the canvas pixel sample was non-empty.

@leocagli leocagli merged commit 28bc1b7 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: árbol tecnológico (4X)

2 participants