From 46b2b2a9210269b376044ee1d208d75c772cb34a Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Thu, 9 Jan 2020 23:26:28 +0100 Subject: stuff --- snake.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'snake.c') diff --git a/snake.c b/snake.c index 0b8c2b4..6a9d6e3 100644 --- a/snake.c +++ b/snake.c @@ -17,7 +17,7 @@ void move_down(LinkedList* snake, int* new); void follow(int* tmp, int* prev, LinkedList* snake, int* new); void newApple(LinkedList* snake, int* apple); -int fps = 60; +int fps = 3; int main() { @@ -100,8 +100,7 @@ void playGame(LinkedList* snake, int* apple, int* stats) clear(); drawSnake(snake, apple); refresh(); - usleep(500000); - //usleep(1000000 / fps); + usleep(1000000 / fps); i++; } -- cgit 1.4.1