A hands-on introduction to Zig · By Paul Cockrell

Learn Zig.Build a game.Have some fun.

A few evenings. A few hundred lines of Zig. One complete game.

A programming book that gets straight to the interesting bit. Learn a modern systems programming language by building Dungeon Dash from an empty directory.

Approx. 97 pages · For people who already know how to programme

Cover of Zig for the Impatient, with vintage orange rays and a Dungeon Dash game illustrationA PROPER
LITTLE
GAME!
★ LEARN BY MAKING★ NO ZIG EXPERIENCE NEEDED★ PLAY IT IN YOUR BROWSER
Less reading. More doing.

Get stuck in.
Not bogged down.

This isn't a tour of every language feature. It's a focused, practical introduction to Zig through one small, satisfying project.

01 /

Start with nothing

Open an empty directory. By the end, you have a finished game that runs on your computer and in a browser.

02 /

Learn Zig as you go

Meet structs, enums, pointers, memory management, error handling and testing when the game actually needs them.

03 /

Make something playable

Real movement, real monsters, real levels. Nothing theoretical for the sake of being theoretical.

Meet your creation

DUNGEON
DASH.

An old-school puzzle game with a wonderfully simple rule: once you move, you keep sliding until something stops you.

Navigate the dungeon, outsmart the monsters, swap places with your teleporter and clear ten levels. It's compact, colourful and surprisingly tricky.

Play it now ↓
Actual screenshot of Dungeon Dash, showing a green player, red enemies and a yellow teleporter in a maze
Your playable preview

DON'T JUST SEE IT.
PLAY IT.

This is the actual game you'll build in the book — not a mock-up or a cut-down demo. Can you clear all ten levels?

READY TO PLAY · KEYBOARD REQUIRED
From zero to playable

ONE GAME.
STEP BY STEP.

Every chapter moves the same project forward. Simple ideas first, then better solutions as your game grows.

01

Open a window

Set up Zig and raylib. Meet the game loop and draw your first dungeon.

02

Make it move

Add a player, sliding movement, walls, monsters and teleportation.

03

Make it a game

Bring in your pixel sprites, multiple levels, game states and tests.

04

Ship it!

Build for WebAssembly and turn your project into something you can share.

It's still a proper programming book

REAL CODE.
REAL RESULTS.

You'll write Zig, build it, run it and see what happens. No need to know the language in advance — some existing programming experience is enough.

By the end you'll understand more than syntax. You'll have watched a working program grow from a tiny prototype into a complete project.

Sounds like my sort of thing ↗
   src/main.zig
// The adventure begins here.
pub fn main() !void {
    raylib.initWindow(
        500, 500,
        "Dungeon Dash",
    );
    defer raylib.closeWindow();

    while (!raylib.windowShouldClose()) {
        raylib.beginDrawing();
        defer raylib.endDrawing();
    }
}
Ready when you are

YOUR NEXT
FEW EVENINGS
START HERE.

Pick up Zig for the Impatient, make a cup of tea and start building Dungeon Dash. A short book, a small game and plenty to learn along the way.

The paperback edition
Zig for the
Impatient

Approx. 97 pages · Royal paperback · Written by Paul Cockrell

Purchase link coming soon

The Bookvault purchase link will appear here once the book is available. No payment is taken on this website.

A few good questions

JUST THE ESSENTIALS.

Do I need to know Zig already?

Not at all. The book assumes you already know how to programme, but it introduces Zig as you build the game.

Is this a full reference guide to Zig?

No — and that's deliberate. It's a focused, project-based introduction for programmers who prefer to learn by doing.

What do I end up with?

A complete retro puzzle game, Dungeon Dash, including ten levels, sprites and a web build you can share.

Is this a physical book?

Yes. The featured edition is a paperback, printed on demand through Bookvault.