fruit: fixed bug where fruit could generate under tail

This commit is contained in:
DarthMooMancer
2025-09-12 20:55:56 -04:00
parent 4bab69a3a8
commit e36ab27f2b
3 changed files with 21 additions and 18 deletions
+2 -1
View File
@@ -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;