From 044c1cf18445fec947e2a0c7404fb5c3e91a7d12 Mon Sep 17 00:00:00 2001 From: hkz Date: Wed, 16 Jul 2025 14:47:36 +0200 Subject: [PATCH] Basic game logic --- src/game_logic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/game_logic.c b/src/game_logic.c index 0a2faf0..759011b 100644 --- a/src/game_logic.c +++ b/src/game_logic.c @@ -21,9 +21,7 @@ uint8_t *get_front_grid(void) { return front_grid; } -uint8_t *step_game(step_direction dir) { - // TODO: Update the grid state calculating the new state in the back grid - +uint8_t *step_game(step_direction dir) { uint8_t start_offset; int8_t column_step; int8_t row_step; @@ -37,7 +35,7 @@ uint8_t *step_game(step_direction dir) { switch(dir) { case UP: - start_offset = GRID_SIDE; + start_offset = GRID_SIDE - 1; column_step = GRID_SIDE; row_step = -1; break;