[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Enter name before game starts
I had been trying your graphical interface suggestion before but couldn't
get it working. I just did
though. Thanks for confirming that was a valid way to go.
Dan
On Mon, 26 Apr 2010 22:45:07 -0700, Ian Mallett wrote:
A super kludgey way:
name = raw_input("Type your name here -> ")
If you want a graphical interface, just make a simple looping program to
do so before the main enters. It's not too hard (especially in comparison
to what the rest of your code likely looks like!) I've used this technique
quite successfully in some of my games.
Ian