fruit: fixed bug where fruit could generate under tail
This commit is contained in:
1 parent
4bab69a3a8
commit
e36ab27f2b
3 files changed
+21
-18
No files matched your search
+2
-1
@@ -6,9 +6,10 @@
|
||||
#include "input.hpp"
|
||||
|
||||
int main () {
|
||||
std::srand(std::time(0));
|
||||
Window window;
|
||||
Input input;
|
||||
Fruit fruit;
|
||||
Fruit fruit(window.m_board);
|
||||
Body body;
|
||||
Head head;
|
||||
bool running = true;
|
||||
|
||||
Reference in new issue
Block a user