Personal projects

Canvas / game engine

Cytogenesis

Boid-simulation strategy game with a custom canvas engine.

Cytogenesis boid-simulation gameplay

About

A roguelite where you shape a flocking swarm of cells to compete against an opponent. The UI is inspired by medieval elements. It runs on a custom Canvas 2D engine built from scratch with no game framework: a fixed-timestep simulation steers Reynolds-style boids, while uniform-grid spatial hashing keeps hundreds of agents smooth.

Technical highlights

  1. 01Hand-made Canvas 2D engine
  2. 02Boid flocking simulation driving the swarm of cells
  3. 03Uniform-grid spatial hashing for fast neighbor lookups
  4. 04Seeded RNG for fully reproducible roguelite runs
  5. 05Event-bus architecture bridging the game loop with the React UI

Stack

  • React
  • TypeScript
  • Vite
  • Canvas 2D
  • React Router
  • CSS Modules
Drawing
Cytogenesis
Daniel Bornstrand
Drawn
2026
Stockholm, Sweden
Lettering
EB Garamond
Geist & Geist Mono
Sheet
05 / 09