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

Re: [pygame] Can the pygame infrastructure be used for non-graphical text-mode games?



This is a puzzling question to me since it's not clear what one expects. Pygame is, after all, the Python wrapper around SDL—the Simple DirectMedia Layer. In a text-based game, you don't really have media, so it's not really clear to me what you'd expect pygame to do for you? By definition, you wouldn't be blitting images or getting input from a graphics window, which are the main features of pygame. Stuff like font rasterization, color conversion, masking, etc. are handled for you in a terminal. I guess you could use pygame to play music and sounds.

One could also write a graphics-based program that looks like a terminal but isn't, and write a "text-based" game that way. Pygame would be a good choice for this, but the broader choice of reinventing the terminal would probably be a bad choice (for being a waste of time).

Ian