summaryrefslogtreecommitdiff
path: root/lib/rules.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rules.h')
-rwxr-xr-xlib/rules.h13
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,