“Game Programming Patterns” is now finished
I’m here to help! Game Programming Patterns is a collection of patterns I found in games that make code cleaner, easier to understand, and faster .
I’m here to help! Game Programming Patterns is a collection of patterns I found in games that make code cleaner, easier to understand, and faster .
Visit gameprogrammingpatterns.com → On Hacker News Dec 2012 – Aug 2020
Games & Graphics 7Software Engineering 6Systems & Performance 1
I’m here to help! Game Programming Patterns is a collection of patterns I found in games that make code cleaner, easier to understand, and faster .
If there is one pattern this book couldn’t live without, this is it. Game loops are the quintessential example of a “game programming pattern”. Almost every game has one, no two are exactly alike, and relatively few programs outside of games use them.
Unless you live under one of the few rocks that still lack Internet access, you’ve probably already heard of an “event queue” . If not, maybe “message queue”, or “event loop”, or “message pump” rings a bell. To refresh your memory, let’s walk through a couple of common manifestations of the pattern.
Cause a series of sequential operations to appear instantaneous or simultaneous.
Give behavior the flexibility of data by encoding it as instructions for a virtual machine.
Allow a single entity to span multiple domains without coupling the domains to each other.