This commit is contained in:
DarthMooMancer
2025-11-13 23:15:52 -05:00
parent 9eb93dc691
commit 59c68b7bd3
2 changed files with 19 additions and 19 deletions
+3 -1
View File
@@ -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 };