feat: fruits, globals, input, snake, point, window

This commit is contained in:
DarthMooMancer
2025-05-09 21:30:19 -04:00
parent 636ebae6a3
commit cdcffc40ea
13 changed files with 231 additions and 57 deletions
+6 -2
View File
@@ -1,7 +1,11 @@
#ifndef SNAKE_HPP
#define SNAKE_HPP
void create_snake();
void draw_snake();
struct Snake {
Snake(int default_direction);
int get_direction() const;
void set_direction(int x);
int direction; // 1: Down, 2: Up, 3: Left, 4: Right
};
#endif