derive start position for snake from screen size

This commit is contained in:
kju 2010-01-14 00:51:54 +00:00
parent 4cb6e44ced
commit 782c0f4439
1 changed files with 1 additions and 1 deletions

View File

@ -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;