Display information on the top right in C

97 views Asked by At

I'm trying to program a simple rpg game in C and I would want to display some permanent information on the top right of the screen. Right now I've only seen the text and information that i print to screen at the bottom, but I was wondering whether it was possible to display constantly and update certain text on the screen. The information that i would want to display would be:

struct character {
    char name[20];
    int HP;
    int MP;
    int AC;
};

And Update it as the game progresses.

So the output would be something like this:

Name: test
HP: 15
MP: 7
AC: 13

//rest of the information and dialogues

Is this possible in C?

Thanks for the help!

0

There are 0 answers