snake              41 modules/games/gui_snake.c unsigned char snake[SNAKE_MAX_LENGTH][2];
snake             269 modules/games/gui_snake.c       if(snake[i][0] == x && snake[i][1] == y) goto randomagain;
snake             288 modules/games/gui_snake.c     snake[i][0] = 2+i;
snake             289 modules/games/gui_snake.c     snake[i][1] = 2;
snake             290 modules/games/gui_snake.c     draw_rectangle(screen_left + snake[i][0] * snake_screen_size,
snake             291 modules/games/gui_snake.c                    screen_top + snake[i][1] * snake_screen_size,
snake             292 modules/games/gui_snake.c                    screen_left + snake[i][0] * snake_screen_size+snake_screen_size-1,
snake             293 modules/games/gui_snake.c                    screen_top + snake[i][1] * snake_screen_size+snake_screen_size-1, MAKE_COLOR(COLOR_WHITE,COLOR_RED), RECT_BORDER1|DRAW_FILLED);
snake             349 modules/games/gui_snake.c         new_cord = (snake[snake_head][0] + 1) % RING_WIDTH;
snake             350 modules/games/gui_snake.c         snake[new_head][0] = new_cord;
snake             351 modules/games/gui_snake.c         snake[new_head][1] = snake[snake_head][1];
snake             355 modules/games/gui_snake.c         new_cord = snake[snake_head][0] - 1;
snake             358 modules/games/gui_snake.c         snake[new_head][0] = new_cord;
snake             359 modules/games/gui_snake.c         snake[new_head][1] = snake[snake_head][1];
snake             363 modules/games/gui_snake.c         new_cord = snake[snake_head][1] - 1;
snake             366 modules/games/gui_snake.c         snake[new_head][0] = snake[snake_head][0];
snake             367 modules/games/gui_snake.c         snake[new_head][1] = new_cord;
snake             371 modules/games/gui_snake.c         new_cord = (snake[snake_head][1] + 1) % RING_HEIGHT;
snake             372 modules/games/gui_snake.c         snake[new_head][0] = snake[snake_head][0];
snake             373 modules/games/gui_snake.c         snake[new_head][1] = new_cord;
snake             379 modules/games/gui_snake.c         if (snake[i][0] == snake[new_head][0] && snake[i][1] == snake[new_head][1])
snake             389 modules/games/gui_snake.c     if (ring[snake[new_head][0]][snake[new_head][1]] == 1)
snake             391 modules/games/gui_snake.c         ring[snake[new_head][0]][snake[new_head][1]] = ' ';
snake             401 modules/games/gui_snake.c     else if (ring[snake[new_head][0]][snake[new_head][1]] != ' ')
snake             407 modules/games/gui_snake.c         draw_element(snake[new_head][0], snake[new_head][1], head, direction);
snake             412 modules/games/gui_snake.c         if (snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_UP)
snake             413 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 2);
snake             414 modules/games/gui_snake.c         else if (snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_LEFT)
snake             415 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 0);
snake             416 modules/games/gui_snake.c         else if (snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_UP)
snake             417 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 4);
snake             418 modules/games/gui_snake.c         else if (snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] > snake[new_head][1] && direction == DIR_RIGHT)
snake             419 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 3);
snake             420 modules/games/gui_snake.c         else if (snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_RIGHT)
snake             421 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 2);
snake             422 modules/games/gui_snake.c         else if (snake[new_cord][0] < snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_DOWN)
snake             423 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 0);
snake             424 modules/games/gui_snake.c         else if (snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_LEFT)
snake             425 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 4);
snake             426 modules/games/gui_snake.c         else if (snake[new_cord][0] > snake[new_head][0] && snake[new_cord][1] < snake[new_head][1] && direction == DIR_DOWN)
snake             427 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail2, 3);
snake             429 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail, 0);
snake             431 modules/games/gui_snake.c             draw_element(snake[snake_head][0], snake[snake_head][1], tail, 1);
snake             436 modules/games/gui_snake.c         draw_rectangle(screen_left + snake[snake_tail][0] * snake_screen_size,
snake             437 modules/games/gui_snake.c                        screen_top + snake[snake_tail][1] * snake_screen_size,
snake             438 modules/games/gui_snake.c                        screen_left + snake[snake_tail][0] * snake_screen_size + snake_screen_size - 1,
snake             439 modules/games/gui_snake.c                        screen_top + snake[snake_tail][1] * snake_screen_size + snake_screen_size - 1, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), RECT_BORDER0 | DRAW_FILLED);