First level done

master
Chara1236 2022-06-19 21:30:25 -04:00
parent 90589ca7d7
commit 06849a5078
4 changed files with 22 additions and 11 deletions

View File

@ -1,7 +1,16 @@
500 150 Hello Kenny, Welcome to my platformer
1500 150 Don't touch that pink dude
1500 200 it looks like it could hurt you
2300 300 You can guess what this
2300 350 orange substance does
2350 300 You can guess what this
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

View File

@ -10,9 +10,9 @@ sssssssssssssssssd
sssssssssssssssssd assssssssssssssssd +ssssssssssssssd
sssssssssssssssssd asssssssssssssssstwwwwwwwwwwwe +ssssssssssssssd
sssssssssssssssssd zxxxxxxxxxxxxxxxxxxxxxxxxxxxftwwwwwwe qe +ssssssssssssssd
sssssssssssssssssd bb zxxxxxxxcooad h +ssssssssssssssd
sssssssssssssssssd qe q e bb ad +ssssssssssssssd
sssssssssssssssssd bb zxxxxxxxcooad he +ssssssssssssssd
sssssssssssssssssd qe q e bb ad zc +ssssssssssssssd
sssssssssssssssssd ad qwwwrlllte bb ad +ssssssssssssssd
sssssssssssssssssd ad asssssssste bb ad +ssssssssssssssd
sssssssssssssssssd ad ! qwrssssssssstwwwe bb ad h +ssssssssssssssd
sssssssssssssssssd ad ! qwrssssssssstwwwe bb ad h !!!!!!!!!!! +ssssssssssssssd
ssssssssssssssssstwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwrtwwwwwwwwwwwwwwwwwwwwwwwwwwrsssssssssssssstwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwd

View File

@ -10,7 +10,7 @@ import java.util.Arrays;
public class LevelManager implements Serializable {
public static int level = 1;
public static int xSpawn = -400;
public static int ySpawn = 500;
public static int ySpawn = 450;
public static String filePath;
@ -22,9 +22,9 @@ public class LevelManager implements Serializable {
GameFrame.game.player.xVelocity = 0;
LevelManager.level = level;
if(level == 1){
//-400/500
xSpawn = 1200;
ySpawn = 500;
//-400/450
xSpawn = -400;
ySpawn = 450;
filePath = "saves/Level1.txt";
bombs = 99999;
} else if(level == 2){
@ -55,6 +55,8 @@ public class LevelManager implements Serializable {
// reset signs
GameFrame.game.tutorialSign = new ArrayList<WallSign>();
GameFrame.game.loreSign = new ArrayList<WallSign>();
GameFrame.game.tutorialSign.clear();
GameFrame.game.loreSign.clear();
// temporary boolean, so only declared here
boolean stillTutorial = true;
for (String[] sA: MapReader.inputSign(filePath)) {

View File

@ -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 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);
if(eHypo<200){
if(eHypo<105){
GameFrame.game.enemy.get(i).isDead = true;
}