25 main.cc
@@ -28,24 +28,39 @@ int difficultyChoice()

int main()
{
int initialPoints = 0;
int totalPoints;
totalPoints = 80;
Input::Key keyPressed;

//bool InputOk = false;
//if (getKey) {
// bool InputOk = true;
//}
keyPressed = Input::getKey();

srand((unsigned int)time((time_t *)NULL));

//srand((unsigned int)time((time_t *)NULL));
srand(time(nullptr));

int difficulty;

difficulty = difficultyChoice();

Map A(difficulty);
A.drawMap();
A.inicialize();

CoinManager Coins(A);
Coins.refillCoins();

Player player(A, Coins);
player.update(keyPressed);

A.drawMap();
Coins.refillCoins();


while (InputOk==true &&initialPoints<totalPoints) {
player.update(keyPressed);
InputOk == false;
}

return 0;
}