Caffeine
Open source game engine

Build worlds with Caffeine.

A C++20 engine on SDL3 GPU with an ECS core, Lua and Dryad scripting, and Doppio: a fast native editor with node generators for materials, textures, nature, terrain and water.

bash
git clone --recurse-submodules git@github.com:devscafecommunity/caffeine.git
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j
Doppio editor with hierarchy, viewport, inspector, assets and console

What is inside

01

Modern renderer

Vulkan, Direct3D 12 and Metal through SDL3 GPU, with PBR materials, shadows, post-processing and terrain.

02

ECS core

Data-oriented entities and components with scenes, hierarchy, prefabs and reflection-based editing.

03

Doppio editor

A native Rust/Iced editor: hierarchy, viewport gizmos, inspector, assets and a headless test driver.

04

Lua and Dryad

Two scripting languages over one documented API, plus a node editor that writes Dryad for you.

05

Generators

Recipe-based generators for materials, textures, nature, terrain and water that stay editable.

06

Asset pipeline

caf-pack turns raw assets into compact .caf files and .cap packages for shipping.

Explore the documentation

Browse all documentation212 pages in the docs

The editor at a glance

Doppio is a single window with five panes. Every widget has a stable id, so the same layout is scriptable and testable.

Material node generator in Doppio
Terrain generator in Doppio
Nature generator in Doppio