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
+17
View File
@@ -0,0 +1,17 @@
#ifndef WINDOW_HPP
#define WINDOW_HPP
#include <array>
#include "globals.hpp"
struct Window {
std::array<std::array<char, COL>, ROW> m_board;
// Initializes board with . for each value
Window();
void draw_window();
void clear_window();
void tick(double frames_per_second);
void update_loop(int fps);
};
#endif // WINDOW_HPP