Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    Can you fit a whole game into a QR code?

    MattKC

    2 HN recommenders · recommended in 6 months, 2020–2025

    YouTube

    20:03 · 9M views · Jul 31, 2020

    MattKC fits a playable Snake game into a QR code by writing tiny x86 machine code and patching the ZBar scanner so it can run the decoded data.

    HN admires it as a creative hack and cites it as the inspiration for later tiny-game and QR-code projects.

    Computing History & CultureDemoscene & retrocomputingSoftware performance & optimizationSecurity & hacking
    1. 12:04
      How we fit an NES game into 40 KilobytesMorphcat Games3.7M views • 8 years ago
    2. 43:40
      DEF CON 29 - Richard Henderson - Old MacDonald Had a Barcode, E I E I CARDEFCONConference18K views • 5 years ago
    3. 1:19:52
      CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”CppCon264K views • 10 years ago
    4. 18:20
      FIXING the ENTIRE SM64 Source Code (INSANE N64 performance)Kaze Emanuar3.2M views • 4 years ago
    5. 25:41
      Compiling C to printable x86, to make an executable research papersuckerpinch480K views • 9 years ago
    6. 16:18
      Computer program that learns to play classic NES gamessuckerpinch2.2M views • 13 years ago
    7. 6:22
      Interactive programming Flappy Bird in ClojureScriptBruce Hauman55K views • 12 years ago
    8. 2:22
      A Mind Is Born (256 bytes)lftkryo1.2M views • 9 years ago
    9. 15:04
      I made a NES emulator in 15 minutesBisqwit389K views • 14 years ago
    10. 35:13
      I built a QR code with my bare hands to see how it worksVeritasium9.7M views • 2 years ago
    11. 2:50:14
      Simple Code, High PerformanceMolly Rocket464K views • 5 years ago
    12. 1:55:24
      Ideas about a new programming language for games.Jonathan Blow530K views • 12 years ago
    13. 12:09
      How I Fixed a 10 Year Old Guitar Hero Bug Without the Source CodeExileLord404K views • 9 years ago
    14. 1:03:31
      Brian Goetz - Stewardship: the Sobering PartsClojureTV39K views • 11 years ago
    15. 2:27:34
      Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025Better Software Conference929K views • 1 year ago
    16. 5:58
      MarI/O - Machine Learning for Video GamesSethBling12M views • 11 years ago
    17. 5:01
      How a Laser-Shot Disk Defeats Hackers & Pirates (Coding Secrets)GameHut132K views • 8 years ago
    18. 7:16
      .kkrieger - The FPS Game in 96KB (Full Gameplay)Daniel Hands528K views • 16 years ago
    19. 58:44
      TasBlock at AGDQ 2017: TASBotTASVideosChannel398K views • 9 years ago
    20. 22:21
      Reverse emulating the NES to give it SUPER POWERS!suckerpinch1.1M views • 8 years ago

    7 comments from Hacker News

    1. @redbellJul 2022· in “Embedding an EXE inside a .REG file with automatic execution”

      I admire this type of content where the creator take some concepts we [all] use and understand then combine them in a specific, but a new way, add some tweaks to get some never-seen results. Here is another experience that, as a Windows developer, blows my mind for a while. this video

      Strongly recommendsView on HN
    2. @fath0mNov 2020· in “Flappy Bird in 228 bytes”

      Using all the browser functionality feels like cheating. There is a good YouTube video, where a person made a snake game that fits inside a QR Code (albeit a larger version that we're used to, which can hold up to 2953 bytes). You can check it out here: this video Quite an interesting watch.

      RecommendsView on HN
    3. @matheusmoreiraApr 2025· in “Show HN: I made a Doom-like game fit inside a QR code”

      QR codes have various encoding modes: numeric, alphanumeric, 8 bit and kanji. The most common is alphanumeric encoding and the densest is 8 bit encoding which just stores binary data. The QR code standards seem to be a little ambiguous on the meaning and purpose of the 8 bit encoding. I got the impression they added it to support alternative character encodings. Still, it's a mode that "represents an 8-bit byte value directly". > The default interpretation for QR Code is ECI 000020 representing the JIS8 and Shift JIS character sets. > 8.3.4 8-bit Byte Mode > The 8-bit byte mode handles the 8-bit Latin/Kana character set in accordance with JIS X 0201 (character values 00HEX to FFHEX). > In this mode data is encoded at a density of 8 bits/character. > 8.4.4 8-bit Byte Mode > In this mode, one 8 bit codeword directly represents the JIS8 character value of the input data character as shown in Table 6, i.e. a density of 8 bits/character. > In ECIs other than the default ECI, it represents an 8-bit byte value directly. In any case, it is possible to use QR codes to store arbitrary binary data. The qrencode tool can do this natively. Decoder support is more tricky, they tend to assume all QR codes contain text. I had to send patches to zbar to help it decode QR codes with binary data in them because it was passing the data through iconv and mangling the output. I also had to add options to the zbar tools to make them decode exactly one QR code I just wanted to print out 4096 bit RSA

      CitesView on HN
    4. @matheusmoreiraAug 2020· in “US indictments of piracy group members throw top-tier piracy world into chaos”

      Video games in QR codes? That's interesting. Do you have the link to the video? Is it this one? this video [LINK] If so, then the patch he submitted builds upon my work! He fixed a line feed conversion bug that was present in Windows. I use Linux so I did not experience this issue. I remember seeing that patch get merged but I didn't know about the whole video game context. This is amazing. I wrote the patch because I was trying to print a 4096 bit RSA secret key as a QR code. Awesome to see it getting used for something even more awesome. Here are the links to my contributions and related pages: [LINK] [LINK] [LINK] [LINK] [LINK] [LINK] [LINK] ZBar used to automatically convert binary data to text when decoding 8 bit QR codes, mangling the data in the process. My patch adds the option to disable that, enabling the data to be extracted without corruption. I also added the one shot feature to the ZBar tools to make it easier to use in automated scripts that expect exactly one output: [LINK] Looks like we have a real world application for tiny ELFs now! [LINK]

      CitesView on HN
    5. @redbellApr 2025· in “Show HN: I made a Doom-like game fit inside a QR code”

      Really cool project! TIL about 'data:' URLs—while I was familiar with the 'data:' URI scheme and had used it before, I didn’t realize it could be used as a full URL. Funny enough, I had been thinking about building something similar that fits entirely within a QR code, but I held off because I mistakenly thought it would require an HTTP(s) link. I was heavily inspired by this work: Can you fit a whole game into a QR code?( this video )

      CitesView on HN