diff --git a/GameProject.zip b/GameProject.zip new file mode 100644 index 0000000..9394c71 Binary files /dev/null and b/GameProject.zip differ diff --git a/GameProject/src/base/MultiLevellGame.java b/GameProject/src/base/MultiLevellGame.java index b82d37c..1af775c 100644 --- a/GameProject/src/base/MultiLevellGame.java +++ b/GameProject/src/base/MultiLevellGame.java @@ -2,20 +2,18 @@ package base; import java.io.IOException; -import playground.Level1; -import playground.LevelHitTwice; -import playground.Level3; -import playground.LevelBoss; +import playground.Level5; +import playground.Level6; +import playground.Level7; public class MultiLevellGame extends GameLoop{ @Override void defineLevels() { this.resetLevels(); - this.addLevel(new Level1()); - this.addLevel(new LevelHitTwice()); - this.addLevel(new Level3()); - this.addLevel(new LevelBoss()); + this.addLevel(new Level5()); + this.addLevel(new Level6()); + this.addLevel(new Level7()); } diff --git a/GameProject/src/playground/AdditionalMethodsForEachLevel.java b/GameProject/src/playground/AdditionalMethodsForEachLevel.java new file mode 100644 index 0000000..dbe92a9 --- /dev/null +++ b/GameProject/src/playground/AdditionalMethodsForEachLevel.java @@ -0,0 +1,13 @@ +package playground; + +import gameobjects.GameObject; + +public class AdditionalMethodsForEachLevel extends SpaceInvadersLevel { + @Override + void actionIfEnemyIsHit(GameObject e, GameObject shot) + { + super.actionIfEnemyIsHit(e,shot); + System.out.println("AUA!!"); + + } +} diff --git a/GameProject/src/playground/Level5.java b/GameProject/src/playground/Level5.java new file mode 100644 index 0000000..e8a25c5 --- /dev/null +++ b/GameProject/src/playground/Level5.java @@ -0,0 +1,23 @@ +package playground; + +public class Level5 extends AdditionalMethodsForEachLevel{ + @Override + protected int calcNrEnemies(){ + return 5; + } + + @Override + protected double calcEnemySpeedX(){ + return 160.0; + } + + @Override + protected double calcEnemySpeedY() { + return 80.0; + } + + protected String getStartupMessage() + { + return "Level5, get Ready!"; + } +} diff --git a/GameProject/src/playground/Level6.java b/GameProject/src/playground/Level6.java new file mode 100644 index 0000000..14932c8 --- /dev/null +++ b/GameProject/src/playground/Level6.java @@ -0,0 +1,23 @@ +package playground; + +public class Level6 extends AdditionalMethodsForEachLevel{ + @Override + protected int calcNrEnemies(){ + return 12; + } + + @Override + protected double calcEnemySpeedX(){ + return 480.0; + } + + @Override + protected double calcEnemySpeedY() { + return 80.0; + } + + protected String getStartupMessage() + { + return "Level6, get Ready!"; + } +} diff --git a/GameProject/src/playground/Level7.java b/GameProject/src/playground/Level7.java new file mode 100644 index 0000000..c02e285 --- /dev/null +++ b/GameProject/src/playground/Level7.java @@ -0,0 +1,23 @@ +package playground; + +public class Level7 extends AdditionalMethodsForEachLevel{ + @Override + protected int calcNrEnemies(){ + return 21; + } + + @Override + protected double calcEnemySpeedX(){ + return 800.0; + } + + @Override + protected double calcEnemySpeedY() { + return 140.0; + } + + protected String getStartupMessage() + { + return "Level7 , get Ready!"; + } +}