Programmierung 2 - Praktikum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
486 B

2 years ago
  1. package playground;
  2. import gameobjects.GameObject;
  3. public class Level6 extends SpaceInvadersLevel {
  4. protected int calcNrEnemies() {
  5. return 12;
  6. }
  7. protected double calcEnemySpeedX() {
  8. return 480;
  9. }
  10. protected double calcEnemySpeedY() {
  11. return 80;
  12. }
  13. protected String getStartupMessage() {
  14. return "Level6, get ready";
  15. }
  16. void actionIfEnemyIsHit(GameObject e, GameObject shot) {
  17. super.actionIfEnemyIsHit(e, shot);
  18. System.out.println("AUA!!");
  19. }
  20. }