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
+16
View File
@@ -0,0 +1,16 @@
#include "input.hpp"
#include <ncurses.h>
void Input::get_input() {
while(true) {
initscr();
cbreak();
noecho();
m_current_key = getch();
endwin();
if(m_current_key == 'q') {
break;
}
}
}