Flappy Swift: A WebAssembly game written in Swift in ~100 KB

Hello lovely community,

I don't know about you, but thought it was about time that we have our own WebAssembly "Flappy Bird" clone.

So, without further ado:

Play Flappy Swift


The cool part about it is that it animates every frame with the full reactive DOM reconciler engine and applies plain-old CSS styles. I did not really invest in tuning yet at all, but it is performing quite ok I think.

Check out the repo here.

40 Likes

I'm feeling very accomplished with my high score of "1". Love it!! :joy:

EDIT: JUST GOT 4 OH YEAH

9 Likes

Very very cool! I assume you built this with embedded swift? If so feel free to open a PR with a link to this project in our "community projects" section, we'd love to have your project listed :)

3 Likes

4!

I did ten games with 0 before scoring a 1. The I threw in the towel :joy:

Cool stuff!

2 Likes

so cool!

Need to disable text selection (at least for touch screen devices).

2 Likes

yeah, agreed. I did not spend too much time on polish to be honest.

text selection, more dynamic sizing (for phones eg), and addressing safari quirks (animations don't work well there) would be good.

We used Finn's playdate work at the last GitHub universe conference at the Swift booth and it was such a HIT! Blew peoples minds that Swift can be used in this way. \o/

thanks for thinking outside of the box, @finnvoor and @sliemeobn for this type of work!

3 Likes