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.
Or read this on r/technology