DEV Community

Cover image for Guess what? You can make a game inside a PDF!
Rezoan
Rezoan

Posted on

Guess what? You can make a game inside a PDF!

I just discovered you can play a full game of Tetris right inside a PDF document. The PDF is plaintext and works in most desktop browsers that support PDF.js or PDFium.

  • Use the arrow keys to move and rotate the Tetris blocks.
  • WASD acts as arrow keys in the input box
  • When the game is over, you can save your score by printing the PDF page.

Game creator: Thomas Rinsma

GitHub repo: pdftris

You can play directly with this link.

Top comments (0)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay