Game Programming Patterns
豆瓣
Robert Nystrom
简介
The biggest challenge facing many game programmers is completing their game. Most game projects fizzle out, overwhelmed by the complexity of their own code. Game Programming Patterns tackles that exact problem. Based on years of experience in shipped AAA titles, this book collects proven patterns to untangle and optimize your game, organized as independent recipes so you can pick just the patterns you need.
You will learn how to write a robust game loop, how to organize your entities using components, and take advantage of the CPUs cache to improve your performance. You'll dive deep into how scripting engines encode behavior, how quadtrees and other spatial partitions optimize your engine, and how other classic design patterns can be used in games.
contents
Acknowledgements
## Introduction
Architecture, Performance, and Games
## Design Patterns Revisited
Command
Flyweight
Observer
Prototype
Singleton
State
## Sequencing Patterns
Double Buffer
Game Loop
Update Method
## Behavioral Patterns
Bytecode
Subclass Sandbox
Type Object
## Decoupling Patterns
Component
Event Queue
Service Locator
## Optimization Patterns
Data Locality
Dirty Flag
Object Pool
Spatial Partition