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

Re: [pygame] Loading commands from a file



I'm curious - so why are these commands in a .txt file? what is the
application of this in the context of a game? (I'm thinking maybe
somebody knows a better way to accomplish your goal, as opposed to
simply answering a technical python question)

On 7/26/07, Ian Mallett <geometrian@xxxxxxxxx> wrote:
Hi,
I'd like to know how to load commands from a file.  In the file (in this
case a .txt) there would be commands like "glBegin(GL_QUADS)".  I would like
to load these commands into a program so that the commands can be executed.
Previously, I had been selecting all in the .txt file and pasting all in the
.py file, but I think there must be a better way.
Thanks,
Ian