How areso/1255-burgomaster works
Project type and purpose
• This is a static, single‐page web application: an idle city‐building game (“1255 Burgomaster”) written in vanilla JavaScript, HTML5, and CSS.
• No backend code or server‐side logic is present; the entire game runs in the browser, using localStorage for persistence.
• CI/CD and testing infrastructure are included via GitHub Actions workflows, shell scripts, Selenium/Pytest, and Cypress.
File structure
• Top level:
• index.html, css/, js/, langs/, resources/, sounds/, tiles/ → all static assets.
• misc/ → design docs, lore, math models.
• ci-scripts/ and continuous_delivery/ → scripts to start a local server, run tests, and push to production.
• tests/ → Selenium/Pytest and Cypress tests organized by type (E2E, smoke, unit, HTML validation, language checks).
• js/:
• config.js, bindings.js, dom.js → core engine and DOM glue.
• game.js → game loop and main entry point.
• mech_*.js and tab_*.js → feature modules for mechanics (auto‐battles, events) and UI tabs.
• objects_*.js → data models for units, artifacts, tech tree.
• js/lib/ → helper libraries (dialogue, bindings, mech_online).
• langs/ → per‐language JSON/JS files loaded at startup.
• continuous_delivery/ and .github/workflows/ → automated CI/CD pipelines for code analysis, tests, and deployment.
README for additional insights
• Confirms that it is a browser‐only game needing no server beyond static hosting.
• Emphasizes use of HTML5 Canvas, ES5/ES6, JSON.parse(), localStorage.
• Mentions global events and built‐in chat (though chat may depend on an external service not in this repo).
• No runtime API layer in this repo (all assets live on the same domain).
Elements
– Asset download (Server → Browser)
– Module calls (JS Engine → Resource Loader/localStorage)
– Test/deploy triggers (GitHub Actions → Shell scripts → Server)
– Static Hosting (green)
– Browser components (blue)
– Persistence (yellow)
– External Services (orange)
– CI/CD (purple)