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

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay