Re:Show HN: I made a Doom-like game fit inside a QR code
by sangeeth96 on Friday April 18, 2025 @03:14PM
(#43731063)
TIL DecompressionStream, thanks. I managed to shave some more bytes by trimming the HTML bits, raised a PR in case you're interested.
Re:Show HN: I made a Doom-like game fit inside a QR code
by kuberwastaken on Friday April 18, 2025 @03:49PM
(#43731303)
YOU'RE A LEGEND! I just managed to ADD (somewhat of) TOUCHSCREEN SUPPORT, better movement, enemy spawning and damage mechanisms in the space that freed up because of this! Genuinely, thank you, made my month :)
Re:Show HN: I made a Doom-like game fit inside a QR code
by sangeeth96 on Friday April 18, 2025 @04:28PM
(#43731601)
Damn, that’s awesome! Glad that was a help :D
Re:Show HN: I made a Doom-like game fit inside a QR code
by collingreen on Friday April 18, 2025 @06:31PM
(#43732418)
Open source victory right here
Re:Show HN: I made a Doom-like game fit inside a QR code
by kuberwastaken on Friday April 18, 2025 @06:49PM
(#43732557)
Absolutely!
Re:Show HN: I made a Doom-like game fit inside a QR code
by r1chardnl on Friday April 18, 2025 @01:08PM
(#43729919)
Your game trailer links to a short called "Fly me to the moon - 19 September 2024". I think this is a mistake?
Re:Show HN: I made a Doom-like game fit inside a QR code
by kuberwastaken on Friday April 18, 2025 @01:28PM
(#43730106)
Should be fixed, sorry haha
Re:Show HN: I made a Doom-like game fit inside a QR code
by dylan604 on Friday April 18, 2025 @05:02PM
(#43731846)
Never gonna give you up lives on in new ways
Re:Show HN: I made a Doom-like game fit inside a QR code
by x3n0ph3n3 on Friday April 18, 2025 @01:06PM
(#43729905)
I think your trailer video link is bad.
Re:Show HN: I made a Doom-like game fit inside a QR code
by croisillon on Friday April 18, 2025 @01:26PM
(#43730092)
correct link: https://www.youtube.com/shorts/QWPr10cAuGc
Re:Show HN: I made a Doom-like game fit inside a QR code
by kuberwastaken on Friday April 18, 2025 @01:28PM
(#43730108)
Fixed it! My bad haha
Re:Show HN: I made a Doom-like game fit inside a QR code
by alex_suzuki on Friday April 18, 2025 @07:08PM
(#43732688)
Very cool! You‘ve definitely motivated me to continue my own experimentation in the realm of „what cool stuff can I put in a QR code“:
https://strich.io/blog/posts/embedding-webassembly-in-qrcode...
Re:Show HN: I made a Doom-like game fit inside a QR code
by kuberwastaken on Saturday April 19, 2025 @01:45AM
(#43734476)
Awesome!
I created a game inspired by Doom and the backrooms called The Backdooms under 2.4kb in minified html. (for reference, this entire post would be around 1.8kB haha) I had to use a not popular way of using GZip with Zlib headers (had to write my own script for compressing it, also in the repo) to eventually convert it a size 40 QR code that works right in your browser using Decompressionstream API.
This is of course a very oversimplified description of it, using a lot of the same technologies that DOOM had but combining it with infinite seed based map generation in 2.4kb (QR codes can only store 3kb, which includes changing formats) was pretty hard.
Here are some links about it if you want to nerd out and read more:
Repository Link (MIT License): https://github.com/Kuberwastaken/backdooms
A Hosted (slightly improved) version of The Backdooms: https://kuberwastaken.github.io/backdooms/
Game Trailer: https://www.youtube.com/shorts/QWPr10cAuGc
My Linkedin post about it: https://www.linkedin.com/feed/update/urn:li:activity:7295667...
(PS: You'd need something like https://qrscanner.org/ or something that can scan bigger QR codes and put the text data onto your browser to play it)
My Blogs documenting the process and development in detail:
https://kuberwastaken.github.io/blog/Projects/How-I-Managed-... https://kuberwastaken.github.io/blog/Projects/How-I-Managed-...