Browse Source

derive start position for snake from screen size

feature/2015
kju 15 years ago
parent
commit
782c0f4439
  1. 2
      games/snake/snake_game.c

2
games/snake/snake_game.c

@ -24,7 +24,7 @@ game_descriptor_t snake_game_descriptor __attribute__((section(".game_descriptor
};
void snake_game() {
pixel pixels[64] = {{4, 14},{4, 13}};
pixel pixels[64] = {{4, NUM_ROWS-2},{4, NUM_ROWS-3}};
pixel * head = &pixels[1];
pixel * tail = &pixels[0];
pixel old_head;

Loading…
Cancel
Save