Beat the rise! Delivery fees are going up soon. INFO

Close Notification

Your cart does not contain any items

Building Your Own Roguelike

A Practical Guide

David Silva

$74.95   $63.28

Paperback

Not in-store but you can order this
How long will it take?

QTY:

English
David Silva
10 November 2025
Building Your Own Roguelike: A Practical Guide takes you on an authentic journey from your first playable prototype to a complete, functional roguelike game. This is not a theoretical guide or a simplified tutorial. It is the real story of building Vanilla Roguelike over five years, complete with mistakes, breaking points, and architectural evolution.

The Journey Begins with Algorithms

The book starts where the project began: with maze generation. You will implement multiple algorithms, including Binary Tree, Aldous-Broder, Recursive Backtracker, and Recursive Division, to understand graph theory, spanning trees, and procedural generation. Each algorithm teaches different principles: some create long corridors, others produce boxy mazes.

The Architecture Problem: When Simple Stops Working

Early prototypes work fine when everything fits in one class. But as features multiply, the code becomes unmaintainable. This book takes you through the breaking point where the naive approach fails, helping you recognise the same problems in your own projects.

You will learn why Entity-Component-System (ECS) architecture solves these problems. ECS is not just a game development pattern. It is a fundamental approach to building scalable software. The book breaks down ECS into digestible pieces: entities as identifiers, components as data containers, and systems as behaviour processors.

Building Complete Game Systems

The middle chapters guide you through implementing real game systems: input handling, movement with collision detection, turn-based combat, inventory management, monster AI, and event-driven architecture. Each system is built iteratively. You start with the simplest version that works, then add complexity as needed.

Real-World Lessons from Real Mistakes

What sets this book apart is its honesty about the development process. You will learn about the breaking point where the original architecture could not support new features, the refactoring that saved the project, and the architectural decisions that enabled growth.

Why Build from Scratch?

Using a game engine teaches you the engine. Building from scratch teaches you the fundamentals. This book focuses on understanding how games work at their core: how algorithms generate content, how architecture enables features, and how systems communicate. The code examples use Ruby, but the concepts are language-agnostic.

Who This Book Is For

Intermediate to advanced programmers who want to understand game development, algorithms, and architecture through hands-on practice. Computer science students will find practical applications for graph theory, data structures, and design patterns. Game developers will gain deep understanding of ECS architecture and procedural generation.

Five parts. Twenty-two chapters. From your first prototype to a complete roguelike with procedural generation, combat, inventory, AI, and event-driven architecture.
By:  
Imprint:   David Silva
Dimensions:   Height: 254mm,  Width: 178mm,  Spine: 12mm
Weight:   426g
ISBN:   9781066649419
ISBN 10:   1066649413
Pages:   178
Publication Date:  
Audience:   General/trade ,  ELT Advanced
Format:   Paperback
Publisher's Status:   Active

Reviews for Building Your Own Roguelike: A Practical Guide

""A fantastic resource for getting started with roguelike game development. Quite well-detailed on the basics and packed with in-depth explanations of the algorithms involved. The author does an outstanding job explaining complex concepts that I usually struggle to grasp from books alone. Highly recommended for anyone interested in procedural generation, ECS architecture, or indie dev projects!"" - Virimpa, Amazon US (5 stars, verified purchase) ""This book helped me realise how I could have refactored that codebase to make it far more maintainable and testable. It genuinely changed the way I think about designing game systems and gave me practical tools to prevent the exact problems that caused me to give up. I'm now motivated to return to that old project and rebuild it properly."" - Angie, Amazon UK (5 stars, verified purchase) ""This book is much more than a guide to building a roguelike game. It's a thoughtfully structured introduction to the fundamentals of software engineering, using game development as the medium. You're not just following instructions, you're learning how to think like an engineer. I'd strongly recommend this book to anyone who wants to strengthen their software engineering foundations."" - The Explorer, Amazon UK (5 stars, verified purchase)


See Also