Ringy Tunnel (TweetTweetJam entry)
About
Uh oh, it's the Ringy Tunnel!
WARNING! This game features a first-person view moving extremely, extremely fast through a tunnel - if you have problems with photosensitivity, you may want to sit this one out, or at least approach with caution!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I made this for TweetTweetJam, a gamejam where people try to write games whose full code fits into two tweets (560 bytes)!
- Arrow Keys - move
- When you fly through a ring, your speed increases and you get one point. When you miss a ring, you start over - my high score is 23!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Here's the code - it looks like garbage (to save characters!), but if you paste it into a blank Pico-8 cartridge, it'll run the game you see above.
pal({0,128,133,130},1)d=0e=0f=0o=99r=0s=0t=1c=0l=0j=0_=circfill::_::b=btn()c*=.98k=(c-.5)^2*4u=b%2-b\2%2v=b\4%2-b\8%2e+=(u-e)/2f+=(v-f)/2d+=t o-=t if o<=0then l+=1if((e-r)^2+(f-s)^2>.5)t=1c=1o=99l=0else j=max(j,l) o+=99r=rnd(3)\1-1s=rnd(3)\1-1t+=.1end w=d%1q=d\1for z=75,2,-.05do a=(z+q)*6.2b=z/70+d/200g=e+sin(b)*z/40h=f+cos(b)*z/40x=g+cos(a)*2y=h+sin(a)*2p=200/(z-w)_(64+x*p,64+y*p,p/4,a/50%5*k+5.9*(1-k)) if(z-o<=.05and z>o)for i=0,1,.05do _(64+(g-r+cos(i)/2)*p,64+(h-s+sin(i)/2)*p,p/10+i/2,13)end end poke(24408,35) ?"★"..l,3,3,7 ?"best: "..j flip()goto _~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If this type of code-compression nonsense is fun to you, you might also enjoy my other game, Froggy Road, which I made for an earlier round of TweetTweetJam!