[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Simple question



Recently I decide write school games using python.


I just need create one screen with one color.

I can do this, but my screen stay blink all the time.

Somebody can send to me one example(with coments) about create one screen with
some color(what module i need use, what functions, what make that functions).


You might want to try pygsear:
http://www.nongnu.org/pygsear/


A very very simple "game" might look like:


from pygsear.Game import Game
from pygsear.locals import BLUE

class MyGame(Game):
def initialize(self):
self.setBackground(color=BLUE)

def main():
g = MyGame()
g.mainloop()

if __name__ == '__main__':
main()



_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus