[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?



Very possibly.  Thanks for the link, I will investigate.

 

Peter

 

From: owner-pygame-users@xxxxxxxx <owner-pygame-users@xxxxxxxx> On Behalf Of Noel Garwick
Sent: Thursday, June 18, 2020 1:46 AM
To: pygame-users@xxxxxxxx
Subject: Re: [pygame] Can the pygame infrastructure be used for non-graphical text-mode games?

 

What Ian said is totally valid.

 

But maybe you're wanting something like this pseudo curses implementation in pygame..?

 

 

On Wed, Jun 17, 2020, 11:16 PM Ian Mallett <ian@xxxxxxxxxxxxxx> wrote:

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