snake can collide and removed some magic numbers

This commit is contained in:
DarthMooMancer committed 2025-09-26 22:14:34 -04:00
1 parent 7a6df4fbe5
commit 74a5d9738a
7 files changed
+57 -30

No files matched your search

+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