← All resources

Game Programming Patterns

Book All

Robert Nystrom (Bob Nystrom)

Visit resource ↗

Description

Game Programming Patterns is Robert Nystrom's book and free website at gameprogrammingpatterns.com, distilled from patterns used while he worked at Electronic Arts. The full text is online; print and ebook purchases support hosting.

Sections cover sequencing patterns such as game loop and update methods, behavioral patterns including state and observer, decoupling via components and event queues, and optimization patterns like object pools and spatial partitions. Each chapter names trade-offs with game-specific examples.

Readers should already write small games in C++ or similar languages. The conversational tone targets maintainable gameplay code as projects outgrow prototypes.

Web, PDF, and print editions share identical content with DRM-free digital files for buyers.

Widely regarded in the game development community as a recommended first architecture book, helped by the free online edition.