{"id":51013936,"url":"https://github.com/zeikar/cimulity","last_synced_at":"2026-06-21T07:31:33.145Z","repository":{"id":358607520,"uuid":"1129670497","full_name":"zeikar/cimulity","owner":"zeikar","description":"Open-source minimal city simulation game in the browser.","archived":false,"fork":false,"pushed_at":"2026-06-11T07:45:07.000Z","size":2821,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-11T09:22:04.426Z","etag":null,"topics":["browser-game","city-builder","city-simulation","hyperclaude","isometric","nextjs","pixijs","react","simcity","typescript"],"latest_commit_sha":null,"homepage":"http://zeikar.dev/cimulity/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeikar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-07T12:18:27.000Z","updated_at":"2026-06-11T07:45:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zeikar/cimulity","commit_stats":null,"previous_names":["zeikar/cimulity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeikar/cimulity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeikar%2Fcimulity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeikar%2Fcimulity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeikar%2Fcimulity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeikar%2Fcimulity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeikar","download_url":"https://codeload.github.com/zeikar/cimulity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeikar%2Fcimulity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34601660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-game","city-builder","city-simulation","hyperclaude","isometric","nextjs","pixijs","react","simcity","typescript"],"created_at":"2026-06-21T07:31:32.493Z","updated_at":"2026-06-21T07:31:33.141Z","avatar_url":"https://github.com/zeikar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cimulity\n\n[![Built with HyperClaude](https://img.shields.io/badge/built%20with-HyperClaude-7c3aed)](http://zeikar.dev/hyperclaude/)\n\n**Open-source minimal city simulation game in the browser.**\n\nCimulity is a SimCity-style city builder built with Next.js, TypeScript, and PixiJS. It focuses on a small, readable simulation core: isometric terrain, roads, zoning, basic growth/economy, and terrain editing.\n\n![Cimulity gameplay — an isometric city with roads, R/C/I buildings, service buildings, parks, and a coastline](docs/screenshots/city-overview.png)\n\n## Project Status\n\nMVP-1 is playable and in active development. The current build supports:\n- 64x64 isometric terrain with camera pan/zoom, hover/select, and drag previews\n- Roads, bulldoze, R/C/I zoning, and raise/lower/level terrain tools\n- Vertex-based terrain with smooth slopes, elevation-derived water, and coplanar road/zone placement\n- Fixed-timestep simulation with zone growth, population, money, speed/pause controls, autosave, and New City reset\n- Power plants + binary reachability gate zone growth\n- Water towers gate zone level-ups/density (power gates initial spawn)\n- Police, fire, hospital, and school stations provide road-network coverage; level-up now requires all four at the anchor\n- Land value gates level-up at the anchor: road proximity (weight 0.40), zone-mix diversity (0.10), service coverage (0.50 — avg of the four), plus additive park proximity (+0.25 max); park is a separate amenity, not a fifth coverage service\n\nNext focus: replace placeholder colored geometry with sprites/textures, add more terrain variety, and continue tightening tool feedback.\n\n## Getting Started\n\n```bash\n# Install dependencies\nnpm install\n\n# Run development server\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) to play!\n\n### Controls\n- **Pan**: Move cursor to any screen edge to scroll (speed scales with proximity to edge)\n- **Zoom**: Mouse wheel (zooms around cursor)\n- **Select Tile**: Left-click on any tile\n- **Hover**: Move mouse over tiles to see highlight\n- **Tools**: S select, T road, B bulldoze, Q/W/E residential/commercial/industrial zones, P power plant, A water tower, C police station, D fire station, H hospital, L school, K park\n- **Terrain**: R raise, F lower, G level/flatten\n- **Time**: Space pause/resume, 1/2/3 speed\n\n## Tech Stack\n\n- **Framework**: Next.js 16.1.1 (App Router)\n- **Language**: TypeScript (strict mode)\n- **Rendering**: PixiJS 8.15.0 (WebGL with Canvas fallback)\n- **Styling**: Tailwind CSS 4\n- **Testing**: Vitest\n\n## Architecture\n\nLayered: input emits tile coords + active tool; engine (`CommandDispatcher`) calls pure tool helpers to build commands, then writes to core; render reads core. React is the shell.\n\nSee [docs/architecture.md](docs/architecture.md) for the full layer diagram, directory structure, coordinate math, and camera/picking details. Per-subsystem deep dives will live under `docs/systems/` as they land.\n\n## Roadmap\n\n### MVP-1 (Remaining)\n\n- [ ] **Expanded tile types** - Additional terrain variety (water is derived from elevation — sea-level tiles render as water by default)\n- [ ] **Sprites/textures** - Replace colored shapes with actual graphics\n\n### MVP-2 (Future)\n\n- [x] **Services** - Police, fire, hospital, and school coverage all shipped (road-network + distance falloff); the coverage family has four members (police/fire/hospital emergency trio + school education); level-up gates on all four at the anchor\n- [x] **Parks** - Park tile shipped (forest-green, keyboard K, cost 100); raises nearby land value (Chebyshev radius 4, additive +0.25 max, nearest-park strongest-wins); park is a land-value amenity — it is NOT a fifth coverage service (the four-input formula is road 0.40 + diversity 0.10 + service 0.50, plus the additive park +0.25)\n- [ ] **Happiness/statistics** - Citizen happiness, budget charts\n- [ ] **Sound effects** - Audio feedback\n- [x] **Land-value model** - Road weight rebalanced 0.7→0.40, diversity 0.3→0.10; the four coverage services now contribute a combined service term (weight 0.50, average of the four normalised coverages) atop the additive park bonus (+0.25). Services play a dual role: hard-gate level-up at the anchor AND feed land value.\n\n## Contributing\n\nThis is a learning/demonstration project. Feel free to fork and experiment!\n\n### Code Style\n\n- **TypeScript strict mode** enabled\n- **Functional approach** where possible\n- **Immutable data** in core layer (future)\n- **Clean separation** of concerns\n- **No circular dependencies** between layers\n\n## License\n\nMIT (or your preferred license)\n\n---\n\n**Built with [HyperClaude](http://zeikar.dev/hyperclaude/)** — *Claude builds, Codex critiques.* My own Claude Code plugin. 🤖✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeikar%2Fcimulity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeikar%2Fcimulity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeikar%2Fcimulity/lists"}