This commit is contained in:
2024-08-02 16:37:41 +03:00
parent 26d1919258
commit cf809176b6
9 changed files with 266 additions and 138 deletions

17
snake/snake.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef SNAKE_H_
#define SNAKE_H_
#include "../globals.h"
typedef struct snakeNode {
int x;
int y;
char visChar;
char dir;
struct snakeNode* next;
} snakePart;
void addSnakePart(snakePart* head);
#endif // SNAKE_H_