Browse Source

cleanup and small code changes for first code homework

master
jkonert 3 years ago
parent
commit
5a60a1a1bb
  1. 10
      GameProject/src/playground/LevelHitTwice.java

10
GameProject/src/playground/LevelHitTwice.java

@ -36,20 +36,12 @@ public class LevelHitTwice extends SpaceInvadersLevel {
return "2 shots at alien required!!!";
}
@Override
protected int calcNrEnemies() {
return 10;
}
public void setupInitialState() {
super.setupInitialState();
GameObject ro = new RectObject("obstacleRect", this, 600, 300, 0, 0, 20, 100, Color.RED) // Remove?
.generateColliders();
this.addObject(ro);
logger.debug("added red box on top");
}
@Override
void actionIfEnemyIsHit(GameObject e, GameObject shot) {

Loading…
Cancel
Save