Hacker News new | past | comments | ask | show | jobs | submit login
Tetris in PostScript (github.com/nst)
4 points by beefburger 2 hours ago | hide | past | favorite | 1 comment





I've just implemented Tetris in PostScript, pushing the limits of a document-processing language to run a realtime game. It works in GhostView on macOS.

* 600 lines / 10 KB * 69 different PostScript operators, no external libs * Realtime input, direct drop, increasing speed levels * 7-tetrimino random bags * Nintendo-style scoring and high score tracking

This project builds on my earlier experiments with PSChess and PSSokoban.

It show that PostScript is a lightweight, expressive, and surprisingly interactive programming language. A perfect tool for hacking on unexpected platforms.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: