Browse Source

Last fixes.

master
JeasonFire 6 years ago
parent
commit
d52026436b
8 changed files with 10 additions and 5 deletions
  1. +5
    -1
      src/com/jeasonfire/engineer/game/entities/Bullet.java
  2. +2
    -1
      src/com/jeasonfire/engineer/game/levels/Level.java
  3. +3
    -3
      src/com/jeasonfire/engineer/graphics/screens/VictoryScreen.java
  4. BIN
      src/com/jeasonfire/engineer/graphics/sprites/level1.png
  5. BIN
      src/com/jeasonfire/engineer/graphics/sprites/level10.png
  6. BIN
      src/com/jeasonfire/engineer/graphics/sprites/level2.png
  7. BIN
      src/com/jeasonfire/engineer/graphics/sprites/level3.png
  8. BIN
      src/com/jeasonfire/engineer/graphics/sprites/level4.png

+ 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

Before After
Width: 8  |  Height: 3  |  Size: 163B Width: 8  |  Height: 3  |  Size: 162B

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

Before After
Width: 20  |  Height: 20  |  Size: 346B Width: 20  |  Height: 20  |  Size: 333B

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

Before After
Width: 8  |  Height: 5  |  Size: 180B Width: 8  |  Height: 5  |  Size: 177B

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

Before After
Width: 18  |  Height: 9  |  Size: 224B Width: 18  |  Height: 9  |  Size: 219B

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

Before After
Width: 15  |  Height: 5  |  Size: 193B Width: 15  |  Height: 5  |  Size: 191B

Loading…
Cancel
Save