Devlog / Entry 001 / Phase 0: Know Thy Engine

Know Thy Engine: an empty folder that builds everywhere

Phase 0 is done: Lintel builds from a clean clone on Windows and Linux, with the strictest warnings, sanitizers and tests on every push.

17 Oct 2026 Phase 0

The engine has a name: Lintel. A lintel is the beam across the top of a door frame, the part that carries the load so the doorway can exist. For a game about doors, that felt right.

Phase 0 had one job: make sure every line I write from now on lands on solid ground. No graphics, no gameplay. Just a repository that builds the same way everywhere and refuses sloppy code.

One command, every platform

The build uses CMake presets, so one command configures, builds and runs the tests:

cmake --workflow --preset linux-gcc-debug

There are presets for GCC, Clang and Visual Studio, in Debug and Release. On every push, GitHub builds all of them on Linux and Windows. If one goes red, that gets fixed before anything else.

Warnings are errors

Every engine target compiles with the strictest useful warnings, and any warning stops the build. The ones that matter most for an engine:

  • -Wconversion and -Wsign-conversion: no silent narrowing from float to int, or from signed to unsigned.
  • -Wshadow: a local variable may not hide another one.
  • -Wdouble-promotion: a float that quietly becomes a double costs speed in hot loops.

Sanitizers from day one

A separate preset builds everything with AddressSanitizer and UndefinedBehaviorSanitizer. They catch out-of-bounds reads, use-after-free, leaks and integer overflow while the program runs. That build is part of CI, so a memory bug cannot hide until it shows up as a strange crash three phases later.

My own test runner

Instead of a test library, Lintel has its own tiny runner of about 80 lines:

LINTEL_TEST(version_string_matches_version_numbers) {
    LINTEL_CHECK(!lintel::core::version_string().empty());
}

Each LINTEL_TEST defines a function and a small static object whose constructor adds that function to a list before main() starts. main() then runs the list. A failed check reports the expression, file and line, and the run carries on, so one run shows every problem.

The numbers

Estimate 30–60 h
Engine code one module (core), one app, two tests
CI 6 builds per push, all green

Starting from an empty folder instead of auditing an old prototype made this phase a lot smaller than its estimate of thirty to sixty hours.

Next: Heartbeat

Phase 1 is the engine core: a window and input through SDL3, memory allocators, a job system, a math library, the ECS, and a fixed 60 Hz simulation tick that runs the same on a client and on a headless server.