Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Commit 6f04eb2

Browse files
author
ThiagoFrois
authored
Update Floresta.cpp
1 parent 9b1c4be commit 6f04eb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Fases/Floresta.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ void Fases::Floresta::criarTerreno() {
2929
new Personagens::Aranha(sf::Vector2f(num2, 0), &listaEntidade, &vetorEntidadeFisica);
3030
}
3131

32-
num = rand() % 5;
32+
num = 5 + rand() % 5;
3333

3434
for (int i = 0; i < num; i++) {
35-
num2 = 3000 + rand() % 300;
35+
num2 = 1000 + rand() % 8000;
3636
new Obstaculos::TeiaDeAranha(sf::Vector2f(num2, 40), sf::Vector2f(50, 10), &listaEntidade);
3737
}
3838

39-
num = rand() % 5;
39+
num = 5 + rand() % 5;
4040

4141
for (int i = 0; i < num; i++) {
42-
num2 = 3000 + rand() % 300;
42+
num2 = 1000 + rand() % 8000;
4343
new Obstaculos::Fogo(sf::Vector2f(num2, 320), sf::Vector2f(8, 15), &listaEntidade);
4444
}
4545

0 commit comments

Comments
 (0)