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

Re: [pygame] Enter name before game starts



On Tue, Apr 27, 2010 at 7:42 AM, Dan Ross <dan@xxxxxxxxxxxxxxxxxx> wrote:
> Hi all-
>
> I'd like to provide a way for a user to enter their name before my game
> enters it's main loop.
>
> I've created a way to do this with pgu but the game takes a large
> performance hit.
>
> Basically, I'd like to have the game start, present a screen for the user
> to enter their name, then move to the main game loop.
>

I solved this by having a state variable in my game's mainclass, one
that keeps track of where the game is.
Thanks to sjbrown I have a very nice way of handling input so it was
easy as pie!

---
//Alex