Quake Made Lights Flicker With Letters, and Half-Life Kept the Trick

Quake encoded flickering lights as strings of letters, and Valve’s original Half-Life source preserves the same atmospheric presets.

Quake’s weathered emblem and title on a dark background in official Steam artwork.

Quake can make a light flicker with a string of letters. Put the right sequence together and it becomes a candle, a pulse or a failing fluorescent tube. Valve’s original Half-Life source contains the same presets, down to the strings that give those lights their rhythm.

The letters describe how bright a light should be over time, so someone building a room can give it a particular mood by choosing a short sequence of text.

## A Tiny Score for a Light Bulb

In id Software’s released Quake renderer, the animation advances through the string ten times per second and loops when it reaches the end. The code identifies “a” as no light, “m” as normal brightness and “z” as double brightness.

That makes a sequence alternating “m” and “a” easy to picture: light, darkness, light, darkness. A run of letters climbing through the alphabet and back down produces a brightening and fading pulse. Repeat a letter and the light holds that level for longer before moving on.

Quake’s preset definitions put names to those rhythms. There are candle variations, strobes and a fluorescent flicker. A constant “m” supplies ordinary steady light. The irregular sequences are longer, but they still use the same small vocabulary.

The result is especially useful for atmosphere. A room can feel unstable because its light keeps faltering, even when nothing else in it moves. The sequence gives the designer a repeatable rhythm to work with.

## Valve Used the Same Lighting Vocabulary

Valve’s released Half-Life source contains those familiar patterns too, including the fluorescent flicker. Looking at both files makes the connection unusually tangible: the shared idea is visible as matching text.

Developer trish recently shared the technique on X. A designer can make a flicker linger by repeating a dim letter, or interrupt it with a short burst of brightness. Those tiny changes give the same lamp a different rhythm without changing the room around it.

Image: id Software / Bethesda Softworks.

guest

0 Comments
0
Would love your thoughts, please comment.x
()
x