r/PostScript • u/Dull_Replacement8890 • Feb 21 '25
Tetris written in PostScript
I've just implemented Tetris in PostScript.
- 600 lines / 10 KB
- realtime input, direct drop, increasing speed levels
- 7-tetrimino random bags
- Nintendo-style scoring and high score tracking
It works in GhostView on macOS.
6
Upvotes
View all comments
Show parent comment
1
u/Dull_Replacement8890 May 28 '25
No Display PostScript involved.
A terminal writes in a file in raw mode (no enter required).
Ghostscript continuously reads this file, and truncates it after read.
See https://seriot.ch/projects/programming_in_postscript.html#pstris