Beispiel #1
0
 void CheckCollision()
 {
     if (isCollided(snake, food))
     {
         food.ConsumeFood();
         snake.AddBlock();
         score += 100;
         SpawnFood(bounds, foodmap);
     }
 }