I'm trying to make a variation of the game PacMan, and I am running into some problems, one of them beeing not knowing how to print the whole map and pacman moving without the screen flickering. This is what i do for printing:
while(commmand) {
system("CLS");
display();
if(kbhit()) {
command = getch();
move(command);
}
move(command);
printf("SCORE: %d",score);
}
command, display, and move are my functions, they work properly. Is there any other way of doing this without the screen flickering?