Level 5 finished

master
Chara1236 2022-06-20 19:26:18 -04:00
parent 1c3cecb6e3
commit 01340ca01c
13 changed files with 74 additions and 58 deletions

View File

@ -7,6 +7,7 @@
5000 500 Avoid da fiiiiiiirrrrrrreeeeeebbbaaaalllsss 5000 500 Avoid da fiiiiiiirrrrrrreeeeeebbbaaaalllsss
5700 100 Oh yeah, bombs can 5700 100 Oh yeah, bombs can
5700 150 kill slimes 5700 150 kill slimes
3320 200 They float!
/ /
3430 500 Click left to throw a bomb You have a limited amount of bombs per level! 3430 500 Click left to throw a bomb You have a limited amount of bombs per level!
2950 550 you can blow up boxes 2950 550 you can blow up boxes

View File

@ -2,11 +2,11 @@ wwwwwwwwwwwwwwwwwe
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assssssssssssssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assssssssssssssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assssssssssssssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assss ssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assss ssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assss ssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assss !!!!!! ssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assssllllllllssssd +ssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd sssssssssssssssssd assssssssssssssssd +ssssssssssssssd
sssssssssssssssssd asssssssssssssssstwwwwwwwwwwwe +ssssssssssssssd sssssssssssssssssd asssssssssssssssstwwwwwwwwwwwe +ssssssssssssssd
sssssssssssssssssd zxxxxxxxxxxxxxxxxxxxxxxxxxxxftwwwwwwe qe +ssssssssssssssd sssssssssssssssssd zxxxxxxxxxxxxxxxxxxxxxxxxxxxftwwwwwwe qe +ssssssssssssssd

View File

@ -1,5 +1,5 @@
200 350 This is a sign 1300 50 Jump to the top
300 400 This is also a sign 1900 200 Trust me, the steel
/ 1900 300 block is quite useful here
300 200 This is a different sign 3450 500 Steel block?
400 250 sign sign sign sign 4500 100 You need your bomb here...

View File

@ -1,2 +1,4 @@
$Villain $Villain
I am having a seizure. Oh you made it past the first real level
Feeling acomplished aren't you...

View File

@ -1,5 +1,2 @@
200 350 This is a sign 300 150 Lava parkourrrrrrrrrrrrr
300 400 This is also a sign 300 500 Hmmmmm... don't screw it up
/
300 200 This is a different sign
400 250 sign sign sign sign

View File

@ -1,12 +1,12 @@
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwe asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwe asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd
assssssgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxfd asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd assssssgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxfd asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd
assssssd ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd assssssd ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd
assssssd ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd assssssd ad ass ss s sssss ss ss sssssss ss ssssss ss ss s ss ssd
assssssd ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd assssssd ad ass sss ss sssss ssssss ss ss ss ss ssssss sss ssss s sss s ss s s sssd
assssssd+ ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd assssssd+ ad ass sss ss ssss sssssss ss ss ss ss ss ss ssss s ss s s sss s ss s ssssd
asssssstwwwwww wwwww ww w wwe ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd asssssstwwwwww wwwww ww w wwe ad ass ss sss ssssssss ss ss ss ss ssss sssss ss ss s s s ssssd
assssssssssssslllsssssllllssllslllssd zc asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd assssssssssssslllsssssllllssllslllssd zc ass ssssss ss sssssssss ss ss ss ss sss ss sss ssssss s sss s s ss s sssd
asssssgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc qe asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd asssssgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc qe ass ssssss s sssss ss ss ss sssssss ssssss s sss s ss s ss ssd
asssssd b ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd asssssd b ad asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd
asssssd b zc asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd asssssd b zc asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd
asssssd b asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd asssssd b asssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd

View File

@ -1,2 +1,4 @@
$Villain $Villain
Cringe No more, I won't let you beat this game
It is time for...
BULLET HELL!!!!!!!!

View File

@ -1,5 +1,2 @@
200 350 This is a sign -200 400 This level is really hard...
300 400 This is also a sign
/
300 200 This is a different sign
400 250 sign sign sign sign

View File

@ -1,2 +1,3 @@
$Villain $Villain
DIE DIE DIE DIE DIE How dare you still be alive
Please DIE DIE DIE DIE DIE DIE

View File

@ -1,5 +1,2 @@
200 350 This is a sign -300 400 Slow and steady...
300 400 This is also a sign 2800 200 ...wins the race
/
300 200 This is a different sign
400 250 sign sign sign sign

View File

@ -1,18 +1,18 @@
qwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwe qwmwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwmwwwwwwwmmwwwwwwmwwwmmwwwwwmwwwwwmmwwwwwwwwwwwwwwe
a d a mb !! b d
a d a bbbbbbo hmmmmmmmmmmmmmm1
a d a b h +
a d a b +
a d a b +
a d a b +
a d a b oooooqwwwwwwwwwwwwwww
a d a b lllllllllllllllllllllllllllllllllllllllllllllllllllllllld
a d a b l d
a lll d a lllbbbbbb l d
a lsl d a lsl l h
a lsl d a lsl l l d
a lsl d a lsl l d
a lsl d a lsl l d
aoo lsl d aooo lsl l d
allllllllllllllsllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllld allllllllllllllslllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllld
zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc

View File

@ -43,11 +43,11 @@ public class LevelManager implements Serializable {
filePath = "saves/Level4.txt"; filePath = "saves/Level4.txt";
bombs = 5; bombs = 5;
} else if(level == 5){ } else if(level == 5){
//-1100/460 //-1100/350
xSpawn = -1100; xSpawn = 1800;
ySpawn = 350; ySpawn = 150;
filePath = "saves/Level5.txt"; filePath = "saves/Level5.txt";
bombs = 0; bombs = 1;
} }
try { try {
MapReader.inputMap(filePath); MapReader.inputMap(filePath);
@ -86,6 +86,20 @@ public class LevelManager implements Serializable {
//System.out.println("done111"); //System.out.println("done111");
} }
public static void setBombs(){
if(GameFrame.game.level == 1){
bombs = 8;
} else if(GameFrame.game.level == 2){
bombs = 3;
} else if(GameFrame.game.level == 3){
bombs = 4;
} else if(GameFrame.game.level == 4){
bombs = 5;
} else if(GameFrame.game.level == 5){
bombs = 1;
}
}
public static void setLevel(int level) { public static void setLevel(int level) {
setLevel(level, false); setLevel(level, false);
} }

View File

@ -108,7 +108,7 @@ public class Player extends GenericSprite {
// calls parent // calls parent
public boolean canUpdate(double x, double y) throws UnsupportedAudioFileException, LineUnavailableException, IOException { public boolean canUpdate(double x, double y) throws UnsupportedAudioFileException, LineUnavailableException, IOException {
if(this.y+y<=-(HEIGHT+Tile.length*2)){ if(this.y+y<=-(HEIGHT+Tile.length)){
return false; return false;
} }
boolean canUpdate = true; boolean canUpdate = true;
@ -296,16 +296,21 @@ public class Player extends GenericSprite {
public void reset() throws UnsupportedAudioFileException, LineUnavailableException, IOException { public void reset() throws UnsupportedAudioFileException, LineUnavailableException, IOException {
SoundWrapper.playSound("sound/OOF.wav"); SoundWrapper.playSound("sound/OOF.wav");
holdingSteel = false;
LevelManager.setLevel(GameFrame.game.level, true); LevelManager.setLevel(GameFrame.game.level, true);
GameFrame.game.camera.x = LevelManager.xSpawn; GameFrame.game.camera.x = LevelManager.xSpawn;
y = LevelManager.ySpawn; y = LevelManager.ySpawn;
holdingSteel = false; GameFrame.game.bombs.clear();
LevelManager.setBombs();
} }
public void resetNoSound() throws IOException { public void resetNoSound() throws IOException {
holdingSteel = false;
LevelManager.setLevel(GameFrame.game.level, true); LevelManager.setLevel(GameFrame.game.level, true);
GameFrame.game.camera.x = LevelManager.xSpawn; GameFrame.game.camera.x = LevelManager.xSpawn;
y = LevelManager.ySpawn; y = LevelManager.ySpawn;
holdingSteel = false; GameFrame.game.bombs.clear();
LevelManager.setBombs();
} }
public void mousePressed(MouseEvent e) throws SpriteException, IOException { public void mousePressed(MouseEvent e) throws SpriteException, IOException {
canReach(1,1); canReach(1,1);