From 5a60a1a1bbe44aa0a9ab825d1497ddf47223bc2c Mon Sep 17 00:00:00 2001 From: jkonert Date: Fri, 22 Apr 2022 21:07:36 +0200 Subject: [PATCH] cleanup and small code changes for first code homework --- GameProject/src/playground/LevelHitTwice.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/GameProject/src/playground/LevelHitTwice.java b/GameProject/src/playground/LevelHitTwice.java index 1243f1f..241ae9e 100644 --- a/GameProject/src/playground/LevelHitTwice.java +++ b/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) {