Skip to case study

Tatuy.

I wanted to write games in Python and still understand what the engine does.

Tatuy is an experimental 2D engine built around scenes, an entity-component system, explicit update phases, and a rendering boundary that does not require game logic to know how pixels reach the screen.

Source is public. The separately hosted browser showcase is configured, but individual interactions and this portfolio's media are still being verified.

Make the moving parts visible.

Game development becomes much easier to reason about when you can answer a few ordinary questions: Which system runs first? When does a spawned entity become visible? What does rendering own, and what does the game own?

Tatuy is my way of exploring those questions without giving up Python for gameplay. The engine makes frame execution explicit and keeps reusable mechanics separate from individual game rules.

Separate the jobs. Keep the flow readable.

The design puts game code at the top, presentation intent in the middle, and platform drawing behind a boundary.

01Game and scenesRules, input intent and scene lifecycle
02World and systemsEntities, components, resources and behavior
03Frame and render pipelinesOrdered phases and semantic drawing
04Backend boundaryPygame today; alternatives are future work

EXECUTION

An explicit frame lifecycle

Control and simulation stages have defined ordering, with commit points for structural world changes before presentation. That makes frame behavior easier to inspect than a collection of hidden callbacks.

Frame lifecycle documentation ↗

PRESENTATION

Ask for a drawing, not a backend call

Scenes and features submit semantic operations—shapes, text and textures—to a render queue. The pipeline orders them by layer, depth and insertion sequence before backend execution.

Render pipeline documentation ↗

Growing a tree to test the engine.

The Procedural Tree experiment uses a seeded generator to build branch and foliage geometry. Its growth state changes over time, while a separate renderer presents that state through Tatuy's render queue.

It is intentionally adjustable: regenerate a seed, restart growth, toggle foliage, pause, or change branch depth. That turns a small visual experiment into a test of input, simulation, and presentation working together.

Read the Procedural Tree experiment ↗

// DEMONSTRATED IN LOCAL SOURCE

Seed
Reproducible generation
Growth
Simulation state, independent of drawing
Rendering
Queue-based presentation
Controls
Regenerate · pause · depth · foliage

This is an approved native Tatuy capture, not a browser gameplay screenshot. The image documents the experiment's early growth state.

Early growth of a stylized brown procedural tree, showing its trunk and bare branching limbs before foliage appears.
Early-growth frame from the same native Tatuy visual test. A seeded branch structure grows before the leaves appear.

Optimize when the evidence asks for it.

WHAT EXISTS

Python engine, Pygame backend, experiments

The codebase has scenes, systems, ECS composition, render operations, reusable features, and example games. The browser showcase has a build pipeline, but deployment configuration is not the same as verifying every playable in a live browser.

WHAT IS NOT DONE

No native backend or performance promise

SDL2 and C++ infrastructure remain possible future directions. Tatuy is alpha software, not a completed general-purpose engine. I am using increasingly demanding experiments to find what its abstractions should become.

From engine architecture to something you can play.

The case study now includes a real native capture alongside the source and design documentation. Verified browser gameplay remains a separate review track.