From 782c0f44392f06f25641dcccae768581985b30b8 Mon Sep 17 00:00:00 2001 From: kju Date: Thu, 14 Jan 2010 00:51:54 +0000 Subject: [PATCH] derive start position for snake from screen size --- games/snake/snake_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/snake/snake_game.c b/games/snake/snake_game.c index 37a2f7f..6be7026 100644 --- a/games/snake/snake_game.c +++ b/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;