Pico Hexagon
A PICO-8 demake of Terry Cavanagh's Super Hexagon. The source code fits in one tweet (280 characters).
Instructions
Press the left and right arrow keys to move. On-screen buttons are provided for mobile.
If you die, the game will exit. If you are playing on web/mobile, you will have to restart the game with the reset button at the bottom.
(Note that if you press any other PICO-8 button (up, down, X, O) the game will crash. I didn't have room for handling this, sorry. The on-screen mobile controls only display the supported buttons.)
Source code
q=-64x=0r=1p=1/8s=sin camera(q,q)h=p/2v=3k=cos::_::cls()circ(0,0)d=9*k(x+v)r-=2e=9*s(x+v)v+=h/9 if(r<2)c=ceil(rnd(6))/8r=80 ?t(),0,q x+=({0,h,-h})[btn()+1]for a=v,1+v,p do for l=r,r+4 do if(a!=c+v)line(k(a)*l,s(a)*l,k(a+p)*l,s(a+p)*l)end end if(pget(d,e)<6)circ(d,e,1)flip()goto _
Status | Released |
Platforms | HTML5 |
Rating | Rated 5.0 out of 5 stars (2 total ratings) |
Author | Tobias V. Langhoff |
Genre | Action |
Made with | PICO-8 |
Tags | Demake, tweetcart |
Code license | MIT License |
Average session | A few seconds |
Inputs | Keyboard, Touchscreen |
Accessibility | Color-blind friendly, High-contrast, Textless |
Links | Lexaloffle BBS, Twitter/X |
Leave a comment
Log in with itch.io to leave a comment.