From 72f5ec3ce777fc05150856f1841e60b0f5c9f8f7 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 18 Jul 2026 13:34:49 -0400 Subject: restore old frontends as they were Minimal changes, just enough to get them building and running. Signed-off-by: Andrew Opalach --- lib/rules.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'lib/rules.h') 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, -- cgit v1.2.3-101-g0448