0

I am making a text game, and what I want it to have one console window for showing the game, then another one next to it showing the players stats.

Is this possible ??

3
Contributors
7
Replies
8
Views
8 Years
Discussion Span
Last Post by shadwickman
0

What about:

The main program constantly writes to a file the stats of a player, and i write another program to output that stuff

Would it work?

0

Yes, but are you going to make the user open the second program when they run the game?
You can't open a new console window through your main Python script.

0

Would that work? Wouldn't it just open one program in the DOS console, wait until it ends, then run the second?

0

Nah, I tested it just then, by opening the same python program twice, and 2 terminal windows showed up :)

0

Another solution - which I don't know if possible - might be having your main program (which opens in the background - no console itself) run two threads, one which opens up the game program and one which opens up the stat program. Then you may be able to have them communicate without the use of a file being perpetually written to and read from the HDD all the time.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.