Add functions in snake.c
snakeInit(), snakeGrow(), snakeMove(), snakeSetDir(), snakeIsAlive(), snakeSetHeadPos()
This commit is contained in:
@@ -21,6 +21,8 @@ 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user