Skip to content

Instantly share code, notes, and snippets.

@nagyadam2092
Forked from gullyn/flappy.html
Created November 30, 2020 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagyadam2092/ac9fe87c75f27f640327d2614b537c67 to your computer and use it in GitHub Desktop.
Save nagyadam2092/ac9fe87c75f27f640327d2614b537c67 to your computer and use it in GitHub Desktop.
Flappy bird in 228 bytes (improved!)
<body onload="z=c.getContext`2d`,p=Y=Q=',9|z.fillRect(',setInterval(`c.height=W=300,p?Y<W&&Y>P&Y<P+E|p>9?z.fillText(S++,0${Q}0,Y-=M-=.5,9${Q}p-=8,0${Q}p,P+E,9,W),P))):(p=M=S=0,Y=E=99):(p=W+4,P=S%E)`,24)"onclick=M=9><canvas id=c>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment