Fixed food generation and removed unused code

Fixed food generation and removed unused code
This commit is contained in:
TriantaTV
2022-08-15 22:15:56 -05:00
parent 08ee516f0e
commit 0d3988a7ff
5 changed files with 5 additions and 12 deletions
-4
View File
@@ -28,10 +28,6 @@ void GameState::startNewGame()
int snakeDirection = 0;
Snake player(sf::Vector2f(25,25));
SnakeFood playerFood(sf::Vector2f(25,25));
// sf::RectangleShape snakeHead(sf::Vector2f(25,25));
sf::RectangleShape snakeFood(sf::Vector2f(25,25));
snakeFood.setFillColor(sf::Color::Red);
snakeFood.setPosition(25,25);
while (gameWindow.isOpen())
{