Close Menu

    Subscribe to Updates

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

    What's Hot

    5 New Electronics You Can Buy At Costco In 2026

    5 Of The Most Frustrating Engine Layouts Ever Designed

    4 Big Changes Coming To ChatGPT In 2026

    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

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026

      Ashley St. Clair, the mother of one of Elon Musk’s children, sues xAI over Grok sexual images

      January 17, 2026

      Anthropic joins OpenAI’s push into health care with new Claude tools

      January 12, 2026
    • Business

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025

      Saudia Arabia’s STC commits to five-year network upgrade programme with Ericsson

      December 18, 2025
    • Crypto

      XRP Advances 3% After Ripple Achieves Major Regulatory Breakthrough in Europe

      February 3, 2026

      BitMEX Launches the Grand Ascent Campaign Featuring a 100,000 USDT Prize Pool

      February 3, 2026

      At $76K, Strategy’s Average Cost Meets Bitcoin’s Current Price

      February 3, 2026

      Solana Rebounds After Sell-Off as Big Money Returns — Why $120 Matters Next

      February 3, 2026

      Clarity Act Loses Clarity Over Trump’s UAE Crypto Deal

      February 3, 2026
    • Technology

      5 New Electronics You Can Buy At Costco In 2026

      February 4, 2026

      5 Of The Most Frustrating Engine Layouts Ever Designed

      February 4, 2026

      4 Big Changes Coming To ChatGPT In 2026

      February 4, 2026

      Changing These 5 Settings Will Instantly Make Your Monitor Look Better

      February 4, 2026

      3 Apps You Should Be Using Alongside ChatGPT

      February 4, 2026
    • 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 Read6 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

    5 New Electronics You Can Buy At Costco In 2026

    February 4, 2026

    5 Of The Most Frustrating Engine Layouts Ever Designed

    February 4, 2026

    4 Big Changes Coming To ChatGPT In 2026

    February 4, 2026
    Leave A Reply Cancel Reply

    Top Posts

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

    April 22, 2025651 Views

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

    July 31, 2025245 Views

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

    April 14, 2025145 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025111 Views
    Don't Miss
    Technology February 4, 2026

    5 New Electronics You Can Buy At Costco In 2026

    5 New Electronics You Can Buy At Costco In 2026 What’s the last thing you…

    5 Of The Most Frustrating Engine Layouts Ever Designed

    4 Big Changes Coming To ChatGPT In 2026

    Changing These 5 Settings Will Instantly Make Your Monitor Look Better

    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

    5 New Electronics You Can Buy At Costco In 2026

    February 4, 20260 Views

    5 Of The Most Frustrating Engine Layouts Ever Designed

    February 4, 20260 Views

    4 Big Changes Coming To ChatGPT In 2026

    February 4, 20260 Views
    Most Popular

    A Team of Female Founders Is Launching Cloud Security Tech That Could Overhaul AI Protection

    March 12, 20250 Views

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views
    © 2026 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.