TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Flappy Bird in 228 bytes

254 pointsby metahostover 4 years ago

13 comments

JosephRedfernover 4 years ago
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&#x27;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&#x27;s more info here: <a href="https:&#x2F;&#x2F;labs.f-secure.com&#x2F;assets&#x2F;BlogFiles&#x2F;MWRI-Labs-BHUS14-Mission-mpossible-2014-08-04-2.pdf" rel="nofollow">https:&#x2F;&#x2F;labs.f-secure.com&#x2F;assets&#x2F;BlogFiles&#x2F;MWRI-Labs-BHUS14-...</a>, with a video demo here: <a href="https:&#x2F;&#x2F;vimeo.com&#x2F;89924160" rel="nofollow">https:&#x2F;&#x2F;vimeo.com&#x2F;89924160</a>
评论 #25255184 未加载
评论 #25252729 未加载
qwertoxover 4 years ago
This reminds me of the incredible Flappy Birds SNES Code Injection into Super Mario World. A must-see video.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=hB6eY73sLV0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=hB6eY73sLV0</a>
etaioinshrdluover 4 years ago
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&#x27;t even have a server to take down... because they&#x27;re just a shareable URL.
txmachineryover 4 years ago
And when you&#x27;re done playing Flappy Bird, there&#x27;s always Flappy Bird Within Flappy Bird:<p><a href="https:&#x2F;&#x2F;www.lexaloffle.com&#x2F;bbs&#x2F;?tid=29323" rel="nofollow">https:&#x2F;&#x2F;www.lexaloffle.com&#x2F;bbs&#x2F;?tid=29323</a>
rasmuseiover 4 years ago
If anyone, like me, did not know what Flappy Bird is: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Flappy_Bird" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Flappy_Bird</a><p>You control the &quot;bird&quot; (the dot). Click to ascend and fly through the approaching openings.
评论 #25252330 未加载
fath0mover 4 years ago
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&#x27;re used to, which can hold up to 2953 bytes). You can check it out here: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ExwqNreocpg" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ExwqNreocpg</a><p>Quite an interesting watch.
rwmjover 4 years ago
Boot sector flappy bird game by Oscar Toledo: <a href="https:&#x2F;&#x2F;github.com&#x2F;nanochess&#x2F;fbird" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nanochess&#x2F;fbird</a> (video: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=p31XFFAeze4" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=p31XFFAeze4</a>)
alblueover 4 years ago
The comments in the ongoing code golf have got it down to 205 bytes.
评论 #25252117 未加载
评论 #25253834 未加载
rsiqueiraover 4 years ago
There are even smaller Flappy Bird implementations (with a maximum of 140 JavaScript characters): here: <a href="https:&#x2F;&#x2F;www.dwitter.net&#x2F;h&#x2F;FlappyBird" rel="nofollow">https:&#x2F;&#x2F;www.dwitter.net&#x2F;h&#x2F;FlappyBird</a> Some are compressed, with the decompressor code included.
评论 #25253067 未加载
xwdvover 4 years ago
The amount of bytes has dropped almost 11% so far since this was posted.
kangaliooover 4 years ago
Fun fact I actually got lower than that when I was implementing it in TI-Basic on my school calculator :) It&#x27;s really amazing how compact code gets on such a simple and pragmatic language
mcintyre1994over 4 years ago
I can&#x27;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!
评论 #25252145 未加载
kzrdudeover 4 years ago
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.