Skip to content

Instantly share code, notes, and snippets.

@dcchambers
Forked from gullyn/flappy.html
Created November 30, 2020 16:20
Show Gist options
  • Save dcchambers/43e4ae9c12ef1f998a644ea9984c28ca to your computer and use it in GitHub Desktop.
Save dcchambers/43e4ae9c12ef1f998a644ea9984c28ca to your computer and use it in GitHub Desktop.
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment