My basic snake game "flashes"

I recently programmed the very basics of a snake game. All it does is have the snake move and the tail follow. As it moves around the whole border flashes every time I use system("cls") and i redraw the border. This makes sense as it have to redraw everything on the screen. I was wondering it there is a way to only clear the snake and not the whole "map".


Last edited on
Yes. Go look into a console library like ncurses or similar; they are much more flexible (and safer) than using system().
Topic archived. No new replies allowed.