
gittech. site
for different kinds of informations and explorations.
PSTris
A Tetris implementation in PostScript
Motivation
- implement a realtime game in PostScript
- play it in GhostView on macOS
See also:
Features
- 600 lines or 10 KB of PostScript
- 69 different operators
- realtime input
- direct drop
- levels with increasing speed
- 7-tetriminos random bags
- high scores
- Nintendo scoring scheme
Play Tetris in GhostView
Terminal window 1:
$ gv tetris.ps
Terminal window 2:
$ stty raw -echo; cat >> t.txt
Play with arrows and space bar in window 2.
Notes and Limitations
Some implementation details inspired from MeatFighter.
Tested with GhostView on macOS.