Miscellany
public text v1 · immutablevoid lose(void)
{
int randx, randy, randcolor, radius;
srand (time(0));
for (int k = 0; k < 20; k++) {
setcolor(GREEN);
outtextxy(250, 5, "COLLISION"); //FLASHING
delay(70);
setcolor(BLACK);
outtextxy(250,5, "COLLISION");
delay(70);
randx = (100+rand()%600);
randy = (100+rand()%600);
radius =(20+rand()%90);
randcolor = (1 + rand()%2);
if (randcolor == 1)
setcolor(RED);
else if (randcolor == 2)
setcolor(YELLOW);
circle(randx, randy, radius);
}
getch();
cleardevice();
}