Hi I am currently developing a game (to hone my C++ skills) where two spaceship shoot each other, but I have a problem. my program flickers so fast and it is unpleasant to the eyes. well why does it flicker you might ask. it is because I constantly refresh the screen. here is the flow of my program
DRAW EVERYTHING > WAIT FOR THE USER TO MAKE A MOVE > CLEAR SCREEN > REDRAW
While waiting for one of the player to make a move everything is fine, no flickering, but when one of the player start moving it will flicker like hell because it is refreshing the screen.
Now my question is: is there a way to clear only a certain part of the console screen ?