Get the latest tech news

Tetris has been crammed into a tiny 60KB PDF, works in any browser | Falling tetriminos find new life in a PDF


The creation, dubbed "Pdftris" by its maker Thomas Rinsma, lets you play the addictive falling blocks puzzler with just a click. We fired it up on Firefox...

The creation, dubbed "Pdftris" by its maker Thomas Rinsma, lets you play the addictive falling blocks puzzler with just a click. As for how Rinsma managed to cram all this functionality into a file format intended for documents, it's made possible using the rarely-explored realm of PDF scripting, supercharged by none other than JavaScript. While you can use the on-screen buttons, Rinsma cleverly enabled keyboard controls by allowing you to type into a text input box below the game.

Get the Android app

Or read this on r/technology

Read more on:

Photo of PDF

PDF

Photo of browser

browser

Photo of New life

New life

Related news:

News photo

Show HN: Doom (1993) in a PDF

News photo

Show HN: A browser designed to support uBlock Origin (MV2) and respect privacy

News photo

Show HN: Tetris in a PDF