Hacker News1 min read
Show HN: TTF-DOOM – A raycaster running inside Tru
TrueType fonts have a hinting VM that grid-fits glyphs. It has a stack, storage area, conditionals, function calls, and it turns out it's Turing-complete. So I built a raycasting engine in the hinting bytecode.The glyph "A" in the font has 16 vertical bar contours. The hinting program reads player coordinates from font variation axes via GETVARIATION, does DDA ray marching against a tile map in the storage area, and repositions bar heights with SCFS. It ends up looking like a crude Wolfenstein-s
Read original on github.com12
2Related
Hacker News
LinkedIn Is Illegally Searching Your Computer
Discussed on Hacker News with 538 points and 254 comments.
538
254Hacker News
Artemis II lifts off: four astronauts begin 10-day
Discussed on Hacker News with 206 points and 101 comments.
206
101Hacker News
81yo Dodgers fan can no longer get tickets because
Discussed on Hacker News with 72 points and 45 comments.
72
45Get the 10 best reads every Sunday
Curated by AI, voted by readers. Free forever.
Liked this? Start your own feed.
Comment
Sign in to join the discussion.
Loading comments…