The project maintainer not yet posted any links for this project.
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.
August 12, 2008 2:57pm - Luca Fabbri - nickname: (keul)
> while not e(12)and q and not not x in range(240) or not x in range(240):
This line has something like "not not x..."!
Another: you can write down what you want after a "]", like:
> xin range(240)or not xin range(240)
This way the code became VERY ugly, of course!
August 12, 2008 8:25am - pymike - nickname: (pymike)
I've been working on a newer version, and I've already figured out a few of the things below! The j(*(f+(0,))) is awesome, I'll borrow that :-)
Thanks for the interest :-)
August 11, 2008 9:26pm - ffao - nickname: (ffao)
Nice to be influencing a large number of pygme coders! (I see you borrowed the ((v&2)-1)*[1,2][v<3] thing) Mine's still shorter though, I think I picked a very simple algorithm to begin with (nobody commented about my favorite part of my algorithm yet, but it only saves a few keystrokes).
There's still something to be done though if you want to go for a lower byte count -- for example, j(f,f,0) is the same as j(*(f+(0,))) [isn't that pretty?]. Also, you can create a variable with the value 16 to save a few bytes. You could get rid of the variable s too, as the only method of it you use is s.fill(). So instead of s=h.set_mode(*2) do s=h.set_mode(*2).fill, and then call s() directly.
August 10, 2008 4:03pm - pymike - nickname: (pymike)
This one won't be getting sound, since it was made to be small.