Fix typos in snake.c - compiles now

- use global variable 'game' from game.h instead of declaring new one
- fix typo wrong variables
- correct move out of map boundary
This commit is contained in:
jonny_jr9
2023-12-03 21:58:21 +01:00
parent 529b633c7a
commit 6b29f1360f
2 changed files with 8 additions and 8 deletions

View File

@@ -21,7 +21,6 @@ typedef struct snake_t
bool isAlive; // lebt die Schlange noch oder ist sie mit sich selbst kollidiert?
} snake_t;
extern gameData_t game;
void snakeInit();
// Snake mit bestimmter Startlänge an Startposition erstellen