2

Cart #44692 | 2017-09-27 | Code ▽ | License: CC4-BY-NC-SA
2

After seeing https://www.quaxio.com/tron/ I wanted to see the smallest version we can do in PICO-8

Currently 251 characters

I'm absolutely sure we can do even better!

(Yes it is useless, yes that probably the lamest game on earth, but who care? :D)

P#44693 2017-09-27 17:52 ( Edited 2017-09-27 23:56)

Cart #44698 | 2017-09-27 | Code ▽ | License: CC4-BY-NC-SA

Here's my entry. Tweetron! It's a 2-player TRON game with player win detection. Takes exactly 256 characters (if you remove the title comments).

P#44699 2017-09-27 19:49 ( Edited 2017-09-27 23:49)

Well done :D

P#44700 2017-09-27 19:56 ( Edited 2017-09-27 23:56)

I wanna try this.
One player mode.

Cart #tawajoneho-0 | 2019-10-07 | Code ▽ | No License

 ```cls()rect(0,6,127,127)x,y,a,b,s=64,68,1,0,0 f={-1,0,1,0,0,-1,0,1}::z::pset(x,y)s+=1flip()for i=0,3do if btn(i)then c=i*2+1 a=f[c] b=f[c+1]end end x+=a y+=b if pget(x,y)==0then goto z end print("game over:"..s) ```

209-chars !

But I think it can be compressed even further. Is 128x128 >32767 ? If not, this next idea might work.

P#68623 2019-10-07 19:32 ( Edited 2019-10-08 01:00)

Cart #diwididupo-0 | 2019-10-07 | Code ▽ | No License

197-chars ! Yeah, baby. :D

 ```cls()rect(0,6,127,127)p,a,s=8768,1,0 f={-1,1,-128,128}::z::x=p%128y=p/128if pget(x,y)>0then print("game over:"..s)stop()end pset(x,y)s+=1flip()for i=0,3 do if btn(i)then a=f[i+1]end end p+=a goto z ```
P#68624 2019-10-07 19:54 ( Edited 2019-10-07 20:02)

If you don't mind the fact it takes 3-lines instead of 1, here it is at 184-chars.

 ```cls()rect(0,6,127,127)p,a,s=8768,1,0 f={-1,1,-128,128}::z::x=p%128y=p/128 if(pget(x,y)>0)print("game over:"..s)stop() pset(x,y)s+=1flip()for i=0,3 do if(btn(i))a=f[i+1] end p+=a goto z ```
P#68655 2019-10-08 18:30