Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 101 posts.

Games & Graphics
2019
10

Game Loop

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.

15

Day of the Tentacle

Although they didn’t know one another at the time, Dave Grossman and Tim Schafer both found themselves at a similar place in life in the summer of 1989: just out of university and uncertain what to do next. Both saw the same unusual advertisement in the newspaper: an advertisement for programmers who could also write…

19

Show HN: 2D Graphics on Modern GPU

Is the traditional 2D imaging model nearing the end of its usefulness, or does it have a shiny future in the “modern graphics” world? I spent a week on a research retreat in a cottage in the woods to answer this question, as it shapes the future of UI toolkits. Performant UI must use GPU effectively, and it’s…

29

Pathfinding for Tower Defense

In a Tower Defense game, there are many enemies that are all headed to the same place. In many Tower Defense games, there is a predetermined path, or a small number of paths. In some, such as the classic Desktop Tower Defense [1] , you can place towers anywhere, and they act as obstacles that affect the paths taken by…