← All projects

Browser game · 3D

Kartonia

A calm 3D town-building game where everything looks like a papercraft model. It runs in the browser with no install, in Turkish and English.

Kartonia title screen over a paper town
Role
Solo build: design, code, art, sound
Period
November 2026
Platform
Desktop browser, touch support
Code
github.com/mevocan/kartonia ↗
Play
mevocan.github.io/kartonia ↗

Project

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

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.

Technologies

  • TypeScript
  • Three.js
  • Vite
  • Vitest
  • Web Audio
  • GitHub Actions
↑