First level done
parent
90589ca7d7
commit
06849a5078
|
@ -1,7 +1,16 @@
|
||||||
500 150 Hello Kenny, Welcome to my platformer
|
500 150 Hello Kenny, Welcome to my platformer
|
||||||
1500 150 Don't touch that pink dude
|
1500 150 Don't touch that pink dude
|
||||||
1500 200 it looks like it could hurt you
|
1500 200 it looks like it could hurt you
|
||||||
2300 300 You can guess what this
|
2350 300 You can guess what this
|
||||||
2300 350 orange substance does
|
2350 350 orange substance does
|
||||||
|
4250 255 Psssss.. use a bomb to jump out of the hole
|
||||||
|
5000 500 Avoid da fiiiiiiirrrrrrreeeeeebbbaaaalllsss
|
||||||
|
5700 100 Oh yeah, bombs can
|
||||||
|
5700 150 kill slimes
|
||||||
/
|
/
|
||||||
300 200 Press WASD to move
|
2950 500 Click left to throw a bomb
|
||||||
|
2950 550 you can blow up boxes
|
||||||
|
500 200 Press WASD to move and R to restart
|
||||||
|
4250 100 You can pickup/placedown steel using right click
|
||||||
|
4250 150 Hold right click to see your pickup/placedown range
|
||||||
|
4250 200 You can't jump or throw bombs while while holding steel
|
|
@ -10,9 +10,9 @@ sssssssssssssssssd
|
||||||
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd
|
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd
|
||||||
sssssssssssssssssd asssssssssssssssstwwwwwwwwwwwe +ssssssssssssssd
|
sssssssssssssssssd asssssssssssssssstwwwwwwwwwwwe +ssssssssssssssd
|
||||||
sssssssssssssssssd zxxxxxxxxxxxxxxxxxxxxxxxxxxxftwwwwwwe qe +ssssssssssssssd
|
sssssssssssssssssd zxxxxxxxxxxxxxxxxxxxxxxxxxxxftwwwwwwe qe +ssssssssssssssd
|
||||||
sssssssssssssssssd bb zxxxxxxxcooad h +ssssssssssssssd
|
sssssssssssssssssd bb zxxxxxxxcooad he +ssssssssssssssd
|
||||||
sssssssssssssssssd qe q e bb ad +ssssssssssssssd
|
sssssssssssssssssd qe q e bb ad zc +ssssssssssssssd
|
||||||
sssssssssssssssssd ad qwwwrlllte bb ad +ssssssssssssssd
|
sssssssssssssssssd ad qwwwrlllte bb ad +ssssssssssssssd
|
||||||
sssssssssssssssssd ad asssssssste bb ad +ssssssssssssssd
|
sssssssssssssssssd ad asssssssste bb ad +ssssssssssssssd
|
||||||
sssssssssssssssssd ad ! qwrssssssssstwwwe bb ad h +ssssssssssssssd
|
sssssssssssssssssd ad ! qwrssssssssstwwwe bb ad h !!!!!!!!!!! +ssssssssssssssd
|
||||||
ssssssssssssssssstwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwrtwwwwwwwwwwwwwwwwwwwwwwwwwwrsssssssssssssstwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwd
|
ssssssssssssssssstwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwrtwwwwwwwwwwwwwwwwwwwwwwwwwwrsssssssssssssstwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwd
|
||||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Arrays;
|
||||||
public class LevelManager implements Serializable {
|
public class LevelManager implements Serializable {
|
||||||
public static int level = 1;
|
public static int level = 1;
|
||||||
public static int xSpawn = -400;
|
public static int xSpawn = -400;
|
||||||
public static int ySpawn = 500;
|
public static int ySpawn = 450;
|
||||||
|
|
||||||
public static String filePath;
|
public static String filePath;
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ public class LevelManager implements Serializable {
|
||||||
GameFrame.game.player.xVelocity = 0;
|
GameFrame.game.player.xVelocity = 0;
|
||||||
LevelManager.level = level;
|
LevelManager.level = level;
|
||||||
if(level == 1){
|
if(level == 1){
|
||||||
//-400/500
|
//-400/450
|
||||||
xSpawn = 1200;
|
xSpawn = -400;
|
||||||
ySpawn = 500;
|
ySpawn = 450;
|
||||||
filePath = "saves/Level1.txt";
|
filePath = "saves/Level1.txt";
|
||||||
bombs = 99999;
|
bombs = 99999;
|
||||||
} else if(level == 2){
|
} else if(level == 2){
|
||||||
|
@ -55,6 +55,8 @@ public class LevelManager implements Serializable {
|
||||||
// reset signs
|
// reset signs
|
||||||
GameFrame.game.tutorialSign = new ArrayList<WallSign>();
|
GameFrame.game.tutorialSign = new ArrayList<WallSign>();
|
||||||
GameFrame.game.loreSign = new ArrayList<WallSign>();
|
GameFrame.game.loreSign = new ArrayList<WallSign>();
|
||||||
|
GameFrame.game.tutorialSign.clear();
|
||||||
|
GameFrame.game.loreSign.clear();
|
||||||
// temporary boolean, so only declared here
|
// temporary boolean, so only declared here
|
||||||
boolean stillTutorial = true;
|
boolean stillTutorial = true;
|
||||||
for (String[] sA: MapReader.inputSign(filePath)) {
|
for (String[] sA: MapReader.inputSign(filePath)) {
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class StickyBomb extends GenericSprite implements Serializable {
|
||||||
double disX = GameFrame.game.enemy.get(i).x+GameFrame.game.enemy.get(i).npcWidth/2 - (x+length/2);
|
double disX = GameFrame.game.enemy.get(i).x+GameFrame.game.enemy.get(i).npcWidth/2 - (x+length/2);
|
||||||
double disY = GameFrame.game.enemy.get(i).y+GameFrame.game.enemy.get(i).npcHeight/2 - (y+length/2);
|
double disY = GameFrame.game.enemy.get(i).y+GameFrame.game.enemy.get(i).npcHeight/2 - (y+length/2);
|
||||||
double eHypo = Math.sqrt(disX*disX+disY*disY);
|
double eHypo = Math.sqrt(disX*disX+disY*disY);
|
||||||
if(eHypo<200){
|
if(eHypo<105){
|
||||||
GameFrame.game.enemy.get(i).isDead = true;
|
GameFrame.game.enemy.get(i).isDead = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue