6 ms·
Flappy Bird in 228 bytes
- kangalioo 6y agoFun 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
- fath0m 6y agoUsing 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: https://www.youtube.com/watch?v=ExwqNreocpg https://www.youtube.com/watch?v=ExwqNreocpg Quite an interesting watch.
- txmachinery 6y agoAnd when you're done playing Flappy Bird, there's always Flappy Bird Within Flappy Bird: https://www.lexaloffle.com/bbs/?tid=29323 https://www.lexaloffle.com/bbs/?tid=29323
- deleted 6y ago[deleted]
- rsiqueira 6y agoThere are even smaller Flappy Bird implementations (with a maximum of 140 JavaScript characters): here: https://www.dwitter.net/h/FlappyBird https://www.dwitter.net/h/FlappyBird Some are compressed, with the decompressor code included.
- lifthrasiir 6y agoUnfortunately they can't be easily compared against each other because Dwitter gives you a (albeit very light) shim for canvas and basic Math functions, which size matters at this scale.
- alblue 6y agoThe comments in the ongoing code golf have got it down to 205 bytes.
- rasmusei 6y agoIf anyone, like me, did not know what Flappy Bird is: https://en.wikipedia.org/wiki/Flappy_Bird https://en.wikipedia.org/wiki/Flappy_Bird You control the "bird" (the dot). Click to ascend and fly through the approaching openings.
- Kiro 6y agoI mean, https://xkcd.com/1053/ https://xkcd.com/1053/ and all but I wonder how it's possible to have missed Flappy Bird. It was the corona virus of its time.
- Mayzie 6y agoI mean, Flappy Bird was popular in late 2013/early 2014, nearly 7 years ago. If you’re a HN reader and currently aged 16 or 17 years old, you would’ve only been 9 or 10 years old at the height of its popularity. Somewhat reasonable to not know about it at that age, so it is entirely possible that some people on HN might not know about it at all.
- iDemonix 6y agoThanks, I needed to feel this old on a Monday morning.
- willis936 6y agoIf you add another 10 years you’ll hit people who knew the previous iteration as “helicopter”.
- secondcoming 6y agoThere is a terrible ad infested version of that game here: https://www.addictinggames.com/clicker/helicopter-game https://www.addictinggames.com/clicker/helicopter-game
- willis936 6y ago
- mcintyre1994 6y agoI 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!
- devxpy 6y agohttps://www.dwitter.net/ https://www.dwitter.net/
- mcintyre1994 6y agoThat's the one, thankyou!
- JosephRedfern 6y agoThis 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). 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! There's more info here: https://labs.f-secure.com/assets/BlogFiles/MWRI-Labs-BHUS14-Mission-mpossible-2014-08-04-2.pdf https://labs.f-secure.com/assets/BlogFiles/MWRI-Labs-BHUS14-..., with a video demo here: https://vimeo.com/89924160 https://vimeo.com/89924160
- antihero 6y agoThat was a good read! Would I be right in saying that given that the PoS is internet connected, you could create a payload that showed a fake pin screen in insecure mode, and just upload the card details and PIN every time someone used it? And deploy that payload simply by inserting the compromised card.
- JosephRedfern 6y agoI'm not entirely sure that this would be the case for mPOS devices, as they aren't necessarily directly connected to the internet (many talk to a tablet or mobile phone via bluetooth), so you might need further vulnerabilities in the accompanying app to be able to exfiltrate that way. MWR have done other work on standard EMV devices which probably ARE connected "directly" to the internet, so the situation you describe may be more likely. I've always liked the idea of having a card that cause the device to behave as if the transaction had gone through successfully. Sort of like an AMEX Black card, but without the repayments. Again, I wasn't involved with any of this, so take my comments with a pinch of salt.
- lxgr 6y ago> I've always liked the idea of having a card that cause the device to behave as if the transaction had gone through successfully. Fortunately it's not that easy. Almost all chip card transactions are online only these days, i.e. the issuing bank's host system has the final say on whether a payment goes through or not.
- etaioinshrdlu 6y agoI 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.
- qwertox 6y agoThis reminds me of the incredible Flappy Birds SNES Code Injection into Super Mario World. A must-see video. https://www.youtube.com/watch?v=hB6eY73sLV0 https://www.youtube.com/watch?v=hB6eY73sLV0
- xwdv 6y agoThe amount of bytes has dropped almost 11% so far since this was posted.
- kzrdude 6y agoThe 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.
- rwmj 6y agoBoot sector flappy bird game by Oscar Toledo: https://github.com/nanochess/fbird https://github.com/nanochess/fbird (video: https://www.youtube.com/watch?v=p31XFFAeze4 https://www.youtube.com/watch?v=p31XFFAeze4)