Shattered Concord is an interactive simulator with database-backed materials and physics-based defense calculations derived from real mechanical and thermal properties.
shared/– canonical shared modules and datasets consumed by the web client, Node tooling, and future native game code.public/shared/– build artifacts mirrored fromshared/for static pages and the GitHub Pages deployment.public/scripts/– page-specific entry points for standalone calculators (crafting, siege, etc.).src/– React simulator and shared application utilities built by Vite.scripts/– Node utilities for updating or enriching the material datasets.
Material properties like hardness, strength, density, and thermal or electrical behavior are translated into slashing, piercing, blunt, and elemental resistances using straightforward formulas. Each raw resistance value is normalized only against materials of the same type so metals are compared with metals and wood with wood. Armor biases and optional magical attunements then adjust the normalized scores.
Visit https://shmerrick.github.io/webgame/ to use the simulator on GitHub Pages.
- Node.js (which includes npm)
Install project dependencies:
npm installMirror the shared database into the public folder (this runs automatically before tests and builds):
npm run sync-dbBuild the project:
npm run buildRun the test suite:
npm test