diff options
| author | 2026-07-18 13:34:49 -0400 | |
|---|---|---|
| committer | 2026-07-18 13:45:01 -0400 | |
| commit | 72f5ec3ce777fc05150856f1841e60b0f5c9f8f7 (patch) | |
| tree | 9b26fd3b314bcf3a2259704c076d819212f172f0 /lib/rules.h | |
| parent | e6b1631d27f9fe54f3cdd3d7ee1e65d726927e3c (diff) | |
| download | cetris-72f5ec3ce777fc05150856f1841e60b0f5c9f8f7.tar.gz cetris-72f5ec3ce777fc05150856f1841e60b0f5c9f8f7.tar.bz2 cetris-72f5ec3ce777fc05150856f1841e60b0f5c9f8f7.zip | |
restore old frontends as they were
Minimal changes, just enough to get them building and running.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'lib/rules.h')
| -rwxr-xr-x | lib/rules.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/rules.h b/lib/rules.h index c18104e..ac441a8 100755 --- a/lib/rules.h +++ b/lib/rules.h @@ -3,37 +3,40 @@ #include "cetris.h" -bool twenty_line_sprint(ctrs_game *g) +static bool twenty_line_sprint(ctrs_game *g) { return g->lines >= 20; } -bool forty_line_sprint(ctrs_game *g) +static bool forty_line_sprint(ctrs_game *g) { return g->lines >= 40; } -bool marathon(ctrs_game *g) +static bool marathon(ctrs_game *g) { + (void)g; return false; } // https://tetris.fandom.com/wiki/Tetris_Worlds -unsigned long tetris_worlds_levels[20] = +static unsigned long tetris_worlds_levels[20] = { 1000, 793, 618, 473, 355, 262, 189, 134, 94, 64, 43, 28, 18, 11, 7, 4, 2, 1, 1, 1 }; // https://tetris.fandom.com/wiki/Tetris_DS -ctrs_config tetris_ds_config = { +static ctrs_config tetris_ds_config = { .drop_period = 83, .next_piece_delay = 666, .line_delay_clear = 666, .lock_delay = 500, .force_lock = 0, +#if CETRIS_ENABLE_DAS .das_arr = 83, .das_das = 183, +#endif .board_x = 10, .board_y = 43, .board_visible = 20, |