Browse Source

Slowed down the Game Of Life

feature/2015
alu 14 years ago
parent
commit
9339fa01f6
  1. 1
      animations/gameoflife.c

1
animations/gameoflife.c

@ -292,6 +292,7 @@ void gameoflife() {
/* the main part */ /* the main part */
pfprint(pf1); pfprint(pf1);
for (cycle = 1; cycle < GOL_CYCLES; ++cycle) { for (cycle = 1; cycle < GOL_CYCLES; ++cycle) {
wait(100);
DEBUG_BYTE(0, (uint8_t)(GOL_CYCLES-cycle) & 0xff); DEBUG_BYTE(1, SREG); DEBUG_BYTE(0, (uint8_t)(GOL_CYCLES-cycle) & 0xff); DEBUG_BYTE(1, SREG);
wait(GOL_DELAY); wait(GOL_DELAY);
pfcopy(pf2, pf1); pfcopy(pf2, pf1);

Loading…
Cancel
Save