var flag; var s; var ms; ms = 200; s=0; flag = 0; while (1){ lc(15, 23 - flag); log(" "); if (inkey() == 32){ flag = (flag + 1) % 2; } if (s == 0){ lc(30, 22 + rnd(2)); log("*"); s = 5; ms = ms - 3; if (ms < 1){ ms = 0; } } scroll(3); if (scr(15, 23 - flag) == 42){ lc(10, 11); log("GAME OVER"); break; } lc(15, 23 - flag); log("@"); s = s - 1; sleep(ms); }