one my favorite game code tricks: Quake (1996) defined light styles with a simple string of alphabetic characters, with A as the brightest light value and Z as the darkest.
so style 5, "gentle pulse", is expressed as "jklmnopqrstuvwxyzyxwvutsrqponmlkj" while style 10, "fluorescent flicker", is "mmamammmmammamamaaamammma".
https://github.com/id-Software/Quake/blob/master/qw-qc/world.qc#L329
Conversation
Notices
-
JP (jplebreton@mastodon.social)'s status on Wednesday, 08-Jan-2025 20:47:20 UTC JP