#include "blike.h" main() { int a, b, c, bb, cc, d; cls(); b = 39; c = 11; bb = 1; cc = -1; d = 37; for (;;) { a = inkey(); locate(b, c ); printf("O"); locate(d, 23); printf("#####"); if (c == 23) { break; } wait(100); locate(b, c ); printf(" "); locate(d, 23); printf(" "); if (b == 0) { bb = 1; } if (b == 78) { bb = -1; } if (c == 0) { cc = 1; } if (c == 22) { if (d - 1 <= b && b <= d + 5) { cc = -1; } } b += bb; c += cc; if (a == 333 && d < 73) { d += 2; } if (a == 331 && d > 1) { d -= 2; } } }
(This host) = http://osask.net