feat: fruits, globals, input, snake, point, window
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user