Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

TweetrisView game page

A fully playable version of tetris in two tweets.
Submitted by JadeLombax โ€” 37 minutes, 17 seconds before the deadline
Add to collection

Play game

Tweetris's itch.io page

How many characters of code did you use?
560

Include your code here, if you'd like to show it off!
l=0t={51,39,23,54,71,15}โ˜…=memset::_::for i=0,15 do g=1k=i*128 if(r!=1)โ˜…(k*4,i*17,512)โ˜…(8195+k,16,10)p=btnp for j=3,12 do if(mget(j,i)<17)g=_ end if(g)memcpy(8320,8192,k)l+=1end cls(5)b=4r=1map()โ—†=poke if(@2<1)a=0n=rnd(6)\1+1๐Ÿ˜=n^โ–ˆ*79x=8y=โ–ˆ x+=(@3*p()&2)/2-(@1*p()&1)y+=(2+l\20+y\1/y*3*(btn()&8))/40โ˜…(1,1,3) if(p(5))a-=1/4x=mid(4+n\6,x,11-n\6) for i=0,11 do s=sin(a)c=cos(a)j=i%4-1k=i\4u=x+j*c-s*k v=y+j*s+c*k if t[n]&2^i>0then spr(๐Ÿ˜,u*8,v*8)โ—†(b,u)โ—†(b+4,v)b+=1 for q=-1,1 do if(mget(u+q,v+1-q^2)!=16)โ—†(q+2)end end if(i-5*@2>7)mset(@(i-4),@i,๐Ÿ˜)end ?l flip()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

What does the @ symbol do in lua/your code? Tried searching on the internet for it and it's a difficult one to find the answer to.

Developer

Oh, that's just a shorthand for peek(), which gives the value of a specified byte. Information about this and a bunch of other operator symbols can be found on the Lua page on the Pico-8 wiki: https://pico-8.fandom.com/wiki/Lua

Ah, it's a pico thing, not a lua thing. Thanks!

Submitted

This is awesome! ๐Ÿค“๐Ÿ‘
Really nice tetris clone
Well done getting this in under the limit.