+ 2
how to make one part of console don't effect with "cls"?
I wanted to see is there any possible way when I'm using system ("cls") walls ( walls of the game ) don't tickle? like this game on youtube using c++ https://www.youtube.com/watch?v=nDdKIxnEyh0
5 Antworten
+ 6
You have to do that simply because it is a console game. In fact, we do the same with window game, we clear the window and redisplay everything (it is done so quickly that it is not noticeable)
+ 5
I do not know if tickling can be prevented in console, try using a console display library like ncurses
+ 4
If you do not want a part to be cleared, you can simply re display it just after the call of system.
Am I assuming right if I think you are using windows OS ?
+ 2
well in any console game ( like snake , pong )
you have to use cls then re-display all characters ( with their new location )
I want to don't cls a part of the game so tickling in console game gets decreased
( for example, I never want to move walls why I have to clear and re-display them? )