wip
This commit is contained in:
+3
-1
@@ -1,6 +1,7 @@
|
||||
#ifndef ENGINE_HPP
|
||||
#define ENGINE_HPP
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
constexpr int ROW = 11;
|
||||
@@ -31,7 +32,8 @@ public:
|
||||
|
||||
private:
|
||||
Window win;
|
||||
std::vector<vec2> buf;
|
||||
std::vector<vec2> tail;
|
||||
std::string status;
|
||||
vec2 head { COL / 2, ROW / 2 };
|
||||
vec2 fruit { rand() % COL, rand() % ROW };
|
||||
vec2 prev_head { head.x, head.y };
|
||||
|
||||
Reference in New Issue
Block a user