Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    A perpetual license for this PDF editor used to be $129, but now it’s only $30

    Get Lenovo’s decked-out Ryzen ThinkPad laptop for $400 off right now

    This HP OLED laptop with 24 hours of battery life is on sale for just $550

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Amazon to lay off 14,000 corporate employees

      October 29, 2025

      Elon Musk launches Grokipedia as an alternative to ‘woke’ Wikipedia

      October 29, 2025

      Fears of an AI bubble are growing, but some on Wall Street aren’t worried just yet

      October 18, 2025

      The sleeper issue that could play a huge role in Virginia and New Jersey — and the midterms

      October 16, 2025

      California bill regulating top AI companies signed into law

      September 30, 2025
    • Business

      Government faces questions about why US AWS outage disrupted UK tax office and banking firms

      October 23, 2025

      Amazon’s AWS outage knocked services like Alexa, Snapchat, Fortnite, Venmo and more offline

      October 21, 2025

      SAP ECC customers bet on composable ERP to avoid upgrading

      October 18, 2025

      Revenue generated by neoclouds expected to exceed $23bn in 2025, predicts Synergy

      October 15, 2025

      You can now try Fortnite directly in Discord

      October 8, 2025
    • Crypto

      Pi Coin Price Recovery Appears Difficult Despite Investor Support

      November 8, 2025

      Bitcoin Treasuries Face Capital Shock as Falling Prices Erase Gains

      November 8, 2025

      Will Crypto Markets Rebound When the US Government Shutdown Ends?

      November 8, 2025

      Two Altcoins are Defying Market Odds With a Sustained Rally

      November 8, 2025

      Caffeine AI Lisbon: A Full-Day Event Exploring the Self-Writing Internet and the Future of AI-Built Applications

      November 8, 2025
    • Technology

      A perpetual license for this PDF editor used to be $129, but now it’s only $30

      November 9, 2025

      Get Lenovo’s decked-out Ryzen ThinkPad laptop for $400 off right now

      November 9, 2025

      This HP OLED laptop with 24 hours of battery life is on sale for just $550

      November 9, 2025

      Rockstar postpones GTA 6 release date again by several months

      November 9, 2025

      This Intel mini PC at $189 is the smartest buy you’ll make this week

      November 9, 2025
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Show HN: I made a Doom-like game fit inside a QR code
    Technology

    Show HN: I made a Doom-like game fit inside a QR code

    TechAiVerseBy TechAiVerseApril 18, 2025No Comments4 Mins Read2 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Show HN: I made a Doom-like game fit inside a QR code
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Show HN: I made a Doom-like game fit inside a QR code

    The Backdooms: Running DOOM on a QR Code

    Yes, this is literally the entire game. You can scan it to play.



    🚀 Project Overview

    The Backdooms is a compressed, self-extracting and infinitely generating HTML game inspired by DOOM 1993 and The Backrooms that can be launched and played in a web browser directly from a QR code.

    This project was a week-long study I performed (now slightly longer) designed to push the limits of QR code storage and compression, to demonstrate an innovative method of hosting lightweight web applications entirely within a QR code.


    Play a slightly less compressed version of this game here

    Yes, it’s 8bit Undertale Music There


    📜 Features

    ✅ Fully Offline: No internet connection is required to play the game after scanning the QR code. The URL basically has the ENTIRE code to the game

    ✅ Extreme Compression: Utilizes a combination of Zlib compression with Gzip Decompression stream along with base64 encoding to make the final result extremely compressed.

    ✅ Self-Extracting Webpage: Uses the DecompressionStream API to dynamically decompress and execute the game within the browser.


    📦 Installation & Dependencies

    Well, technically speaking, just a modern web browser.

    But if we do get into the nitty gritty of generating a QR code of a ≈ 2.5kb game:

    Prerequisites

    • Python 3.7+
    • qrcode library (for generating QR codes)
    • pillow (for QR code image handling)

    Install Dependencies


    🛠️ Usage

    1️⃣ Convert Your Game to a QR Code

    Run the script with the following command:

    Example:

    python3 QRGEN.py EVEN-SMALLER-SLAMMER-BACKROOMS.html qrcode.png

    2️⃣ Scan the QR Code

    Use a smartphone or QR scanner to open the game directly in a web browser.

    3️⃣ Play Instantly 🎮

    Enjoy The Backdooms without needing to download or install anything!


    🔍 Technical Breakdown

    Compression Workflow

    flowchart TD A[Read Input HTML] --> B[Compress with Zlib] B -->|wbits=15| C[Base64 Encode] C --> D[Embed in HTML Wrapper] subgraph browser[Browser Processing] D --> E[DecompressionStream 'gzip'] E --> F{Format Mismatch} end F --> G[Convert to Data URI] G --> H{Fits QR Code?} H -->|Yes| I[Generate QR] H -->|No| J[Reduce HTML Size] J --> A



    Loading


    Read Input HTML: The process starts by reading the given HTML content from a file or input source.

    Zlib Compression + GZip decompression: The HTML is compressed using Zlib and uses Decompressionstream from GZip for best compression

    Base64 Encoding: The compressed data is encoded in Base64, ensuring that it remains text-based and can be embedded in an HTML file safely.

    Embedding in HTML Wrapper: A JavaScript-based self-extracting HTML wrapper is created. This wrapper includes a DecompressionStream API function that automatically decompresses the content when opened in a browser.

    Data URI Conversion: The entire HTML is converted into a data:text/html;base64,… format, allowing it to be stored and shared easily without a physical file.

    QR Code Generation Logic

    The system first tries to generate the smallest possible QR version using qr.make(fit=True), which dynamically adjusts the QR size based on content length.

    If the required version exceeds 40 (the QR code standard limit), it forces version 40 with fit=False.

    The lowest error correction level L (which allows the maximum data capacity) is used to fit as much data as possible.

    If the data is still too large for QR v40 with level L, the process fails, and an error is returned.

    Outcome

    If successful, a QR code is generated and displayed.

    If not, the process terminates with an error message indicating that the data is too large to be encoded in a QR code.


    Understand the Frustration and Trial and Error

    Read about the development journey on my blog MindDump


    📜 License

    This project is released under the MIT License—free to use, modify, and share.
    It would make me EXTREMELY happy to see other QR games or even seeing better versions of DOOM in a QR code, given there’s so little resources related to this


    🙌 Credits

    • id Software for Developing DOOM
    • matttkc for putting this idea in my head 5 years ago
    • Toby Fox for the amazing music in Undertale, this game’s GitHub hosted version uses an 8 bit version of Bonetrousle

    Developed by Kuber Mehta 🙂

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleCollege Towns: Urbanism from a Past Era with Ryan Allen
    Next Article Dot (YC S21) is hiring a sales engineer to automate analytics (fully remote)
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    A perpetual license for this PDF editor used to be $129, but now it’s only $30

    November 9, 2025

    Get Lenovo’s decked-out Ryzen ThinkPad laptop for $400 off right now

    November 9, 2025

    This HP OLED laptop with 24 hours of battery life is on sale for just $550

    November 9, 2025
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025357 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 202592 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 202569 Views

    Is Libby Compatible With Kobo E-Readers?

    March 31, 202555 Views
    Don't Miss
    Technology November 9, 2025

    A perpetual license for this PDF editor used to be $129, but now it’s only $30

    A perpetual license for this PDF editor used to be $129, but now it’s only…

    Get Lenovo’s decked-out Ryzen ThinkPad laptop for $400 off right now

    This HP OLED laptop with 24 hours of battery life is on sale for just $550

    Rockstar postpones GTA 6 release date again by several months

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    A perpetual license for this PDF editor used to be $129, but now it’s only $30

    November 9, 20252 Views

    Get Lenovo’s decked-out Ryzen ThinkPad laptop for $400 off right now

    November 9, 20253 Views

    This HP OLED laptop with 24 hours of battery life is on sale for just $550

    November 9, 20252 Views
    Most Popular

    Xiaomi 15 Ultra Officially Launched in China, Malaysia launch to follow after global event

    March 12, 20250 Views

    Apple thinks people won’t use MagSafe on iPhone 16e

    March 12, 20250 Views

    French Apex Legends voice cast refuses contracts over “unacceptable” AI clause

    March 12, 20250 Views
    © 2025 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.