Browse Source

Last fixes.

master
JeasonFire 5 years ago
parent
commit
d52026436b

+ 5
- 1
src/com/jeasonfire/engineer/game/entities/Bullet.java View File

@@ -28,8 +28,12 @@ public class Bullet extends Entity {
&& collision(level.entities.get(i))) {
level.resetLevel();
Sound.DEATH.play();
if (level.currentLevel > 5)
if (level.currentLevel > 5) {
level.score--;
if (level.currentLevel == 10)
level.score--;
level.lives--;
}
break;
} else if (level.entities.get(i) instanceof Turret
&& collision(level.entities.get(i))

+ 2
- 1
src/com/jeasonfire/engineer/game/levels/Level.java View File

@@ -145,7 +145,8 @@ public class Level {
maxLives = 3;
}
lives = maxLives;
currentLevel = 10;
currentLevel = 6;
score = 1;
}
if (!(this instanceof LevelEditor)) {
generate(currentLevel);

+ 3
- 3
src/com/jeasonfire/engineer/graphics/screens/VictoryScreen.java View File

@@ -22,9 +22,9 @@ public class VictoryScreen extends Screen {
public void draw() {
drawString("Engineer", 16, 8, 2);
drawString("Congratulations!", width / 2 - 64, 48);
drawString("You won!", width / 2 - 32, 60);
drawString("Your score: " + score, width / 2 - 56, 72);
drawString("Congratulations!", width / 2 - 64, 32);
drawString("You won!", width / 2 - 32, 44);
drawString("Your score: " + score, width / 2 - 56, 56);
if (selection == BACK) {
drawString("> Back <", width / 2 - 32, backBox.y);

BIN
src/com/jeasonfire/engineer/graphics/sprites/level1.png View File


BIN
src/com/jeasonfire/engineer/graphics/sprites/level10.png View File


BIN
src/com/jeasonfire/engineer/graphics/sprites/level2.png View File


BIN
src/com/jeasonfire/engineer/graphics/sprites/level3.png View File


BIN
src/com/jeasonfire/engineer/graphics/sprites/level4.png View File


Loading…
Cancel
Save