c - overwriting characters in a printf statement to implement snake -
hey how overwrite characters in c ? in printf statement. want go , overwrite @ space , increment @ on screen. i'm trying implement snake game.
#include<stdio.h> #include<conio.h> main() { printf("@"); }
what looking ansi control characters. sending allow move cursor.
e.g.:
printf("%c[%da", 0x1b, 10); // move cursor 10 lines
Comments
Post a Comment