Hello i just tested curses.h on C, and i want a '#', that you can move.
if i want to get right, and down it goes but when i try to go up and left it cant.
while(ch = wgetch(win))
{
switch(ch)
{
case 'w':
y--;
werase(win);
box(win, 0, 0);
mvwprintw(win, y, x, "#");
case 's':
y++;
werase(win);
box(win, 0, 0);
mvwprintw(win, y, x, "#");
case 'a':
x--;
werase(win);
box(win, 0, 0);
mvwprintw(win, y, x, "#");
case 'd':
x++;
werase(win);
box(win, 0, 0);
mvwprintw(win, y, x, "#");
default:
break;
}
}