game-programming-patterns icon indicating copy to clipboard operation
game-programming-patterns copied to clipboard

Source repo for the book

Results 103 game-programming-patterns issues
Sort by recently updated
recently updated
newest added

TL;DR: Can you come up with a better anti-singleton example than your Log example? I pointed your chapter on Singletons being mostly useless and after a lengthy discussion it seemed...

At the bottom of the page the unity diagram link is dead: http://gameprogrammingpatterns.com/game-loop.html http://www.richardfine.co.uk/2012/10/unity3d-monobehaviour-lifecycle/ Can still find here: https://web.archive.org/web/20140319005648/http://www.richardfine.co.uk/junk/unity%20lifetime.png

Point it to: http://docs.unity3d.com/Manual/ExecutionOrder.html

Got the method name wrong.

Hi, fantastic book and great examples from the gaming domain. I'm currently professor teaching in germany in the area of game development and plan to incorporate some of the examples...

Graphic example is great! But I can't comprehend why this code would be "see a slap in the frame after it was actually slapped". void Stage::update() { for (int i...

First of all, congrats @munificent for that great blog / book about game patterns! I was reading the State pattern chapter and in the section about memory allocation and fragmentation,...

State: why not just make the states (non-static!) members of the Heroine class? Then Coop is no problem because each Heroine has her own states and you still don't have...

In the Command pattern, the example for undo does not change `xBefore_` nor `yBefore_`. ``` C++ virtual void undo() { unit_->moveTo(xBefore_, yBefore_); } ``` So repeated calls to undo would...

Since the later Unit classes use `double` (and the type of the first Unit class's position is never shown), the reader will assume it's a `double` and comparison against that...