Topics /

Games & Graphics

The most popular blog posts about games & graphics on Hacker News. 2,047 posts.

Any year
1537

Fix Your Timestep

Introduction Hi, I’m Glenn Fiedler and welcome to Game Physics. In the previous article we discussed how to integrate the equations of motion using a numerical integrator. Integration sounds complicated, but it’s just a way to advance the your physics simulation forward by some small amount of time called “delta time”…

1538

Minesweeper: Advanced Tactics (2005)

In this position, I know about a bunch of mines on all the remaining fronts, but I can't quite determine where they are. There are a few mines that might be in one of two positions (red or blue), a cluster of mines that might be in one of two arrangements (green), and a more complex situation in the top left which I…

1539

Common Lisp and Music Composition

Once upon a time, there were many music composition software packages, mostly written in Common LISP. To name a few I know, Common Music, Symbolic Composer (not related to the Symbolics Lisp Machine). Common Music is still available in source code but I doubt if anyone is still able to setup that. Symbolic Composer…

1543

Triangle frenzy

Suppose we want to draw a batch of images, where each image is made up of randomly positioned and colored triangles, that are blending. It will look like this:

1545

A pair of dice which never roll 7 (2004)

Some friends of mine play the board game Settlers Of Catan . In this game, each player rolls two ordinary dice on their turn, and the number which comes up determines what resources people get for the turn. When a seven is rolled, something special happens: no resources are generated, and instead a robber moves on the…

1546

A whole boss fight in 256 bytes

Endbot is a complete audio-visual demo that fits in exactly 256 bytes . It runs under DOS (via DosBox-X) and renders in real-time: a robot sprite with progressive bullet damage, a growing explosion, a scrolling checkerboard landscape, and a MIDI soundtrack - all from a single tiny .com file.

1549

How to print your Guild Wars 2 character

2025 update v2: I made a tool that fixes distortions introduced by Intel GPA, and that tool made few sections of this blog obsolete. As such, they’ve been deleted. Old version is still available here.2025 update. This blog post now also exists as a youtube video. Yes, the video is 1 hour 20, so about twice as long as…

1551

Shades of Halftone

An interactive deep dive into building halftone shaders in GLSL, covering everything from classic dot patterns and CMYK color separation to Moiré interference, gooey effects, and animated displacement.

1557

Make a Doom level, part 1: the basics

I love Doom. Or, well, I love Doom 2, which is the game we actually had when I was nostalgia years old. I love the aesthetic — pixely in a 3D(ish) environment, and consistent in a way that meshes together really well. The classic levels are abstract (occasionally too abstract), but still detailed enough to feel like…