Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Friday, March 16th, 2007

Subject:PyGame Scenes?
Time:9:49 pm.
I found an interesting site to help learn PyGame stuff:

http://scriptedfun.com/

The guy posts videos of what to write and explains it in words. So far, he has 4 videos up, including one to make a 'barebones' file to work off of.

I've learned greatly from this one, and I also included Psyco to see if that speeds anything up.

Question though, if anyone here knows...

How do I make 'scenes' in Pygame?

Like when you turn on a game, the first thing you see is the brand name, then the title and some goofy animation, then the main menu, then menus after that (select your character), and then the game.

I tried making two while loops, a nested while loop, and using time.sleep(x), but neither worked.

How is it supposed to be set up, and obviously, cleaned up after moving to the next scene?
Comments: Read 3 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image