[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Github Pygame Example Repository



Nice.

For the main game loop, I like to do:
while not done:
    # ...events , draw...
    if pressed[K_ESC]: done = True
       
# to allow smooth exit / save game state / cleanup if needed.

check out : pygame.Color() http://www.pygame.org/docs/ref/color.html

You can post your code on the site, with a link to your repo. http://www.pygame.org/tags/tutorial
--
Jake