fruit: fixed bug where fruit could generate under tail
This commit is contained in:
+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