snake can collide and removed some magic numbers
This commit is contained in:
1 parent
7a6df4fbe5
commit
74a5d9738a
7 files changed
+57
-30
No files matched your search
+3
-2
@@ -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
|
||||
Reference in new issue
Block a user