Fixed where mines appear when screen width is larger than 800.
This causes the game to be easier, but whatever. The game is easier with a bigger view anyway.
This commit is contained in:
parent
2446baf718
commit
6c616bb4a2
|
@ -2486,9 +2486,9 @@ int game_mainLoop()
|
||||||
// but I'm not entirely sure what the original intention was.
|
// but I'm not entirely sure what the original intention was.
|
||||||
// For now, I've set the range to [800, 1500], which
|
// For now, I've set the range to [800, 1500], which
|
||||||
// approximately replicates the original's results.
|
// approximately replicates the original's results.
|
||||||
collectable_add(RANDRANGE(800, 1500),
|
collectable_add(screen->w + RANDRANGE(0, 700),
|
||||||
RANDRANGE(-screen->h / 3, (4 * screen->h) / 3), P_MINE, 25,
|
RANDRANGE(-screen->h / 3, (4 * screen->h) / 3), P_MINE, 25,
|
||||||
180 + rand() % 60);
|
180 * screen->w / 800 + RANDRANGE(0, 60));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine.addAliens > -1)
|
if (engine.addAliens > -1)
|
||||||
|
|
Loading…
Reference in New Issue