pygame is
pygame.org is
|
PicoSnake
PicoSnake - 4.0.0 - 304BIan Mallett (geometrian)Tags:DescriptionThe ever-increasing (decreasing?) progression of smaller snakes. Changesreplaced " and " with "&", replaced first loop with "while not x&528:"
from pygame import*;q=display;T=16;f=q.set_mode([256]*2).fill;l=[];d=a=x=1 while not x&528: while a&528or a in l:a=a*9%512 l=l[a!=x:]+[x];f(0);[f(99,(o%T*T,o/32*T,T,T))for o in l+[a]];q.flip();time.wait(99);D=d for e in event.get(2): v=e.key-272;n=((v&2)-1)*[1,32][v<3] if-n-D&0<5:d=n x+=d Links
ScreenshotReleases
Pygame.org account CommentsIf you wish to leave a comment with your pygame.org account, please sign in first.
|
|