snake can collide and removed some magic numbers

This commit is contained in:
DarthMooMancer
2025-09-26 22:14:34 -04:00
parent 7a6df4fbe5
commit 74a5d9738a
7 changed files with 57 additions and 30 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
#ifndef INPUT_HPP
#define INPUT_HPP
#include "element.hpp"
struct Input {
int m_current_key = 0;
enum Direction m_current_key = NONE;
int m_getch = 0;
void get_input(int &d, bool &r);
void get_input(enum Direction &dir, bool &r);
};
#endif // INPUT_HPP