This commit is contained in:
DarthMooMancer
2025-11-24 14:23:37 -05:00
parent 4a2c46af9e
commit 820c4b6dc4
2 changed files with 7 additions and 10 deletions
+3 -2
View File
@@ -3,6 +3,7 @@
#include <string>
#include <deque>
#include <array>
#include <ncurses.h>
constexpr int ROW = 15;
constexpr int COL = 21;
@@ -21,13 +22,13 @@ struct vec2 {
struct Window {
std::array<std::array<char, COL>, ROW> view;
void draw_display();
void update_display(vec2 &head, vec2 &fruit, std::deque<vec2> &buf);
void update_display(const vec2 fruit, std::deque<vec2> &buf);
};
class Engine {
public:
Engine();
~Engine();
~Engine() { endwin(); }
void run();
private: