This reminds me of when I was an intern at an InfoSec company 6 years ago. At the time, they were doing some research into mPOS devices (though I wasn't involved).<p>They found and exploited a stack-based buffer overflow in the EMV parsing of a particular device, which allowed them to deliver a payload from the smart-card itself. To demo this attack, they wrote a flappy bird clone which was played using the number pad of the mPOS device. It weighed in at ~4k though, so positively heavyweight compared to this!<p>There's more info here: <a href="https://labs.f-secure.com/assets/BlogFiles/MWRI-Labs-BHUS14-Mission-mpossible-2014-08-04-2.pdf" rel="nofollow">https://labs.f-secure.com/assets/BlogFiles/MWRI-Labs-BHUS14-...</a>, with a video demo here: <a href="https://vimeo.com/89924160" rel="nofollow">https://vimeo.com/89924160</a>
This reminds me of the incredible Flappy Birds SNES Code Injection into Super Mario World. A must-see video.<p><a href="https://www.youtube.com/watch?v=hB6eY73sLV0" rel="nofollow">https://www.youtube.com/watch?v=hB6eY73sLV0</a>
I like the data-url version! I found that on iOS safari, a data-URL page could be installed as a PWA (to some extent). I like the idea of shareable installable apps on iOS that don't even have a server to take down... because they're just a shareable URL.
And when you're done playing Flappy Bird, there's always Flappy Bird Within Flappy Bird:<p><a href="https://www.lexaloffle.com/bbs/?tid=29323" rel="nofollow">https://www.lexaloffle.com/bbs/?tid=29323</a>
If anyone, like me, did not know what Flappy Bird is: <a href="https://en.wikipedia.org/wiki/Flappy_Bird" rel="nofollow">https://en.wikipedia.org/wiki/Flappy_Bird</a><p>You control the "bird" (the dot). Click to ascend and fly through the approaching openings.
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: <a href="https://www.youtube.com/watch?v=ExwqNreocpg" rel="nofollow">https://www.youtube.com/watch?v=ExwqNreocpg</a><p>Quite an interesting watch.
Boot sector flappy bird game by Oscar Toledo: <a href="https://github.com/nanochess/fbird" rel="nofollow">https://github.com/nanochess/fbird</a> (video: <a href="https://www.youtube.com/watch?v=p31XFFAeze4" rel="nofollow">https://www.youtube.com/watch?v=p31XFFAeze4</a>)
There are even smaller Flappy Bird implementations (with a maximum of 140 JavaScript characters): here: <a href="https://www.dwitter.net/h/FlappyBird" rel="nofollow">https://www.dwitter.net/h/FlappyBird</a>
Some are compressed, with the decompressor code included.
Fun fact I actually got lower than that when I was implementing it in TI-Basic on my school calculator :) It's really amazing how compact code gets on such a simple and pragmatic language
I can't remember what the Twitter-for-tiny-Javascript-demos website is, but this would probably be really cool there if it can be made to work with their logic!
The real cheat is using oversimplified graphics. The game should give an impression of being a flappy bird clone, including resembling it graphically. A good demo is impressive visually.