rendered paste bodyrandomize(); cout << "Type WASD to move, Spacebar to initialize drawing and Q to quit" << endl; char key; int x = 40; int y = 10; do{ gotoxy(x,y); cout << '*' << flush; goto(x,y); key = getch(); if (key == 'i' || key == 'I'){ y++; } else if(key == 'l' || key == 'L'){ y--; } else if(key == 'm' || key == 'M'){ x--; } else if(key == 'k' || key == 'K'){ x++; } else if(key == 'q' || key == 'Q'); }while(key != 'q' && key != 'Q'); gotoxy(1,1); delline(); cout << "Random stars, press any key to stop\n"; while (!kbhit()){ gotoxy(1+random(60), 2+random(20)); cout << "* "; }