Play game
Elemental Roshambo's itch.io pageHow many characters of code did you use?
520
Include your code here, if you'd like to show it off!
pal({1,3,2,12,11,8},1)poke(0x5f2c,3)cls()c=3o=sset ::_::n=s g=s spr(0,0,0,16,16)for y=0,63 do for x=0,63 do p,l,w=pget(x,y),0,0if p==0then p=flr(rnd(4))+3o(x,y,p)end e=p%3+4 if (p!=c)n=1 if (p==c)g=1 for z=-1,1 do for v=-1,1 do local o=pget(x+z,y+v)if o==e then l+=1elseif o==e-3then w+=1end end end if w>=3then o(x,y,c)elseif l>=3then o(x,y,e)end end end if (btn(4))c=c%3+1 if (btn(5))c=(c-2)%3+1 if (n and not g)goto j if (g and not n)goto e pal({c,c,c})flip()goto _ ::e:: ?"you won!" goto e ::j:: ?"you lost." goto j
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet