hi
This commit is contained in:
+3
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user