Im making a game in c++, and struggling with how to write out the Highscore. I've got a variable that's counting a player's score, and when it is game over that score is written in the middle of the window. I also have a highscore section in the menu looking something like this:
Play Game
Highscores
Options
Credits
Exit
My question to you is how do I cout the score a player got in the game, when I choose Highscores in the menu? Thanks in advance!
SFML, Allegro, SDL ... There are half a dozen of them and most of us haven't memorized them all. If you're doing this on the console I'd discourage that but we could still help, you would just have to mention it. In the last case you would just use std::cout to put it to the console window so I guess I don't understand the question in that case.