1010
Check-in [4b3ee94d70]
Not logged in
Public Repositories
mwm's Repositories

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Shorten the autorepeat delay.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4b3ee94d7094dce046c0338ef8de63338dc6dbbe
User & Date: mwm 2016-11-04 10:40:13
Context
2016-11-05
13:28
Initial version of help system. Needs more work. check-in: 44de8814a6 user: mwm tags: trunk
2016-11-04
10:40
Shorten the autorepeat delay. check-in: 4b3ee94d70 user: mwm tags: trunk
10:05
Replace delays with spins on button state. check-in: 10b72045d3 user: mwm tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Tiny-1010.ino.

238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
               return;
          }
     state = DONE;
}

void
reset_game(void) {
     game.delay = 150;
     game.score = 0;
     for (byte i = 0; i < BOARD_SIZE; i += 1)
          for (byte j = 0; j < BOARD_SIZE; j += 1)
               game.board[i][j] = EMPTY;

     new_shapes();
     state = SELECTING;







|







238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
               return;
          }
     state = DONE;
}

void
reset_game(void) {
     game.delay = 100;
     game.score = 0;
     for (byte i = 0; i < BOARD_SIZE; i += 1)
          for (byte j = 0; j < BOARD_SIZE; j += 1)
               game.board[i][j] = EMPTY;

     new_shapes();
     state = SELECTING;