while( dir == 0 ) // UP

{

mvwprintw(kidWin, y--, x, "%c", n);

wvmprintw(kidWin, y+2, x, " ");

wrefresh(kidWin);

}

while ( dir == 2) //DOWN

{

mvwprintw(kidWin, y++, x, "%c", n);

mvwprintw(kidWin, (y-2), x, " ");

wrefresh(kidWin);

}

while ( dir == 3 ) //LEFT

{

mvwdelch(kidWin, y, x);

mvwprintw(kidWin, y, x--, "%c", n);

wrefresh(kidWin);

while ( dir == 1 ) //RIGHT

{

mvwprintw(kidWin, y, x++, "%c", n);

mvwprintw(kidWin, y, (x-2), " ");

wrefresh(kidWin);

}

@b49P23TIvg that sounds interesting but I'm not exactly sure what you mean by that. Could you elaborate just a little bit further? Thanks for the feedback so far.
Tweet This+ 1 thisPost To Linkedin