master
Chara1236 2022-06-20 22:20:58 -04:00
parent 827afb798c
commit 7020dcb336
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,3 @@
Can't believe I made it out of their base! Can't believe I made it out of their base!
That was another close one. That was another close one.
Anyways, now that we're out of the woods, we can relax in this clearing, and you can toss some of those bugs you're so fond of. Anyways, now that we're out of the woods, we can relax in this clearing, and you can toss some of those bombs you're so fond of.

View File

@ -21,6 +21,7 @@ public class LevelManager implements Serializable {
GameFrame.game.player.yVelocity = 0; GameFrame.game.player.yVelocity = 0;
GameFrame.game.player.xVelocity = 0; GameFrame.game.player.xVelocity = 0;
GameFrame.game.level = level; GameFrame.game.level = level;
GameFrame.game.player.alive = true;
// change spawn coordinates, bomb count, and save file path based on level inputted // change spawn coordinates, bomb count, and save file path based on level inputted
if(level == 1){ if(level == 1){
// spawn coordinates: -400/450 // spawn coordinates: -400/450
@ -47,13 +48,13 @@ public class LevelManager implements Serializable {
filePath = "saves/Level4.txt"; filePath = "saves/Level4.txt";
bombs = 6; bombs = 6;
} else if(level == 5){ } else if(level == 5){
//-1100/460 //-1100/360
xSpawn = -1100; xSpawn = -1100;
ySpawn = 300; ySpawn = 360;
filePath = "saves/Level5.txt"; filePath = "saves/Level5.txt";
bombs = 1; bombs = 1;
} else if(level == 6){ } else if(level == 6){
//-1100/460 //0/50
xSpawn = 0; xSpawn = 0;
ySpawn = 50; ySpawn = 50;
filePath = "saves/Level6.txt"; filePath = "saves/Level6.txt";
@ -105,6 +106,7 @@ public class LevelManager implements Serializable {
} catch (IOException | SpriteException | UnsupportedAudioFileException | LineUnavailableException e) { } catch (IOException | SpriteException | UnsupportedAudioFileException | LineUnavailableException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
GameFrame.game.player.alive = true;
} }