Your mom
parent
827afb798c
commit
7020dcb336
|
@ -1,3 +1,3 @@
|
|||
Can't believe I made it out of their base!
|
||||
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.
|
|
@ -21,6 +21,7 @@ public class LevelManager implements Serializable {
|
|||
GameFrame.game.player.yVelocity = 0;
|
||||
GameFrame.game.player.xVelocity = 0;
|
||||
GameFrame.game.level = level;
|
||||
GameFrame.game.player.alive = true;
|
||||
// change spawn coordinates, bomb count, and save file path based on level inputted
|
||||
if(level == 1){
|
||||
// spawn coordinates: -400/450
|
||||
|
@ -47,13 +48,13 @@ public class LevelManager implements Serializable {
|
|||
filePath = "saves/Level4.txt";
|
||||
bombs = 6;
|
||||
} else if(level == 5){
|
||||
//-1100/460
|
||||
//-1100/360
|
||||
xSpawn = -1100;
|
||||
ySpawn = 300;
|
||||
ySpawn = 360;
|
||||
filePath = "saves/Level5.txt";
|
||||
bombs = 1;
|
||||
} else if(level == 6){
|
||||
//-1100/460
|
||||
//0/50
|
||||
xSpawn = 0;
|
||||
ySpawn = 50;
|
||||
filePath = "saves/Level6.txt";
|
||||
|
@ -105,6 +106,7 @@ public class LevelManager implements Serializable {
|
|||
} catch (IOException | SpriteException | UnsupportedAudioFileException | LineUnavailableException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
GameFrame.game.player.alive = true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue