You draw roads freely on a round cardboard island and place buildings anywhere along them, with no grid. Residents pay taxes, taxes grow the town, and houses level up only when their needs are met: water, food, wood, school and health.
Gameplay
A production chain: field → mill → bakery for bread, plus woodcutter, quarry, carpenter, fishery and storehouse. Placement matters: a field by the lake yields more, a mill on a hill turns faster.
Four seasons. Fields rest in winter and houses burn more wood, so autumn is for getting ready.
A traveling merchant, resident requests, seasonal festivals and decision cards with a plus and a minus each.
A living town: paper people walking to work, chimney smoke, ducks on the lakes, a day-night cycle with lit windows.
A town journal and a year-end newspaper that sums up the year from its own records.
How I built it
Vite, TypeScript and Three.js with no other runtime dependency. Every model, texture, sound effect and the music are generated in code; there are no image or audio files in the project.
Game rules live in pure TypeScript, separate from rendering, and are covered by Vitest unit tests.
A toon look made with a custom shader: ink outlines, three-tone shading and hand-drawn lines on walls and roofs computed from world coordinates.
Every map is generated from a seed (lakes, hills, forests, meadows), and the same seed always gives the same map.
All text is in language files; a test fails if Turkish and English keys or placeholders drift apart.
Every push to main runs the tests, builds the game and publishes it to GitHub Pages with GitHub Actions.
Screens
A town in autumn.Up close, with the building menu open.Winter: snowy ground, frozen lakes and falling paper snow.
Result
A playable game with a short tutorial and saves kept in the browser, live at mevocan.github.io/kartonia. It is designed for mouse and keyboard; on phones it runs full screen in landscape with two-finger controls.