Thank you, kschnee... looks good to me - I will use that in my next game.
But imho adding the widget/interface info+sampleclass is too much for an
otherwise nice and simple cookbook-entry
simon

ps.: And you code tells me that calling  'screen' what you call 'state' is
not too far fetched ;-)
next_screen = self.game_state.pop()

On 7/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I found a better way than I'd done before to switch between the various
states of a game, such as a main gameplay screen and a status screen.
Attached is some example code. Something for the Cookbook, maybe?

Reply via email to