Browse Source

GameProjekt auf HA3 aktualisiert

konertversion
fdai7222 3 years ago
parent
commit
793e0be1be
  1. 7
      spaceinvaders/GameProject/.classpath
  2. BIN
      spaceinvaders/GameProject/bin/base/GameLoop.class
  3. BIN
      spaceinvaders/GameProject/bin/base/MultiLevelGame.class
  4. BIN
      spaceinvaders/GameProject/bin/collider/CircleCollider.class
  5. BIN
      spaceinvaders/GameProject/bin/collider/Collider.class
  6. BIN
      spaceinvaders/GameProject/bin/collider/RectCollider.class
  7. BIN
      spaceinvaders/GameProject/bin/controller/CollisionAwareEgoController.class
  8. BIN
      spaceinvaders/GameProject/bin/controller/EgoController.class
  9. BIN
      spaceinvaders/GameProject/bin/controller/EnemyController.class
  10. BIN
      spaceinvaders/GameProject/bin/controller/FallingStarController.class
  11. BIN
      spaceinvaders/GameProject/bin/controller/LimitedTimeController.class
  12. BIN
      spaceinvaders/GameProject/bin/controller/MineController.class
  13. BIN
      spaceinvaders/GameProject/bin/controller/ObjectController.class
  14. BIN
      spaceinvaders/GameProject/bin/controller/SimpleShotController.class
  15. BIN
      spaceinvaders/GameProject/bin/controller/ZickZackController.class
  16. BIN
      spaceinvaders/GameProject/bin/controller/package-info.class
  17. BIN
      spaceinvaders/GameProject/bin/gameobjects/AnimatedGameobject.class
  18. BIN
      spaceinvaders/GameProject/bin/gameobjects/EgoObject.class
  19. BIN
      spaceinvaders/GameProject/bin/gameobjects/FallingStar.class
  20. BIN
      spaceinvaders/GameProject/bin/gameobjects/GameObject.class
  21. BIN
      spaceinvaders/GameProject/bin/gameobjects/RectObject.class
  22. BIN
      spaceinvaders/GameProject/bin/gameobjects/TextObject.class
  23. 30
      spaceinvaders/GameProject/bin/log4j2.xml
  24. BIN
      spaceinvaders/GameProject/bin/playground/Animation.class
  25. BIN
      spaceinvaders/GameProject/bin/playground/HighscoreManager.class
  26. BIN
      spaceinvaders/GameProject/bin/playground/Level1.class
  27. BIN
      spaceinvaders/GameProject/bin/playground/Level2.class
  28. BIN
      spaceinvaders/GameProject/bin/playground/Level3.class
  29. BIN
      spaceinvaders/GameProject/bin/playground/Level4.class
  30. BIN
      spaceinvaders/GameProject/bin/playground/Level5.class
  31. BIN
      spaceinvaders/GameProject/bin/playground/Level6.class
  32. BIN
      spaceinvaders/GameProject/bin/playground/Level7.class
  33. BIN
      spaceinvaders/GameProject/bin/playground/LevelBoss.class
  34. BIN
      spaceinvaders/GameProject/bin/playground/LevelHitTwice.class
  35. BIN
      spaceinvaders/GameProject/bin/playground/Music$1.class
  36. BIN
      spaceinvaders/GameProject/bin/playground/Music.class
  37. BIN
      spaceinvaders/GameProject/bin/playground/Playground.class
  38. BIN
      spaceinvaders/GameProject/bin/playground/SaveGame.class
  39. BIN
      spaceinvaders/GameProject/bin/playground/SpaceInvadersLevel.class
  40. BIN
      spaceinvaders/GameProject/bin/playground/SpaceInvadersLevelTest.class
  41. BIN
      spaceinvaders/GameProject/bin/rendering/AnimationArtist.class
  42. BIN
      spaceinvaders/GameProject/bin/rendering/Artist.class
  43. BIN
      spaceinvaders/GameProject/bin/rendering/CircleArtist.class
  44. BIN
      spaceinvaders/GameProject/bin/rendering/RectArtist.class
  45. BIN
      spaceinvaders/GameProject/bin/rendering/TextArtist.class
  46. BIN
      spaceinvaders/GameProject/bin/ui/AboutFrame$1.class
  47. BIN
      spaceinvaders/GameProject/bin/ui/AboutFrame.class
  48. BIN
      spaceinvaders/GameProject/bin/ui/GamePanel.class
  49. BIN
      spaceinvaders/GameProject/bin/ui/GameUI.class
  50. 1
      spaceinvaders/GameProject/highscore.txt
  51. 633
      spaceinvaders/GameProject/log/log4j.log
  52. 24
      spaceinvaders/GameProject/src/base/MultiLevelGame.java
  53. 2
      spaceinvaders/GameProject/src/log4j2.xml
  54. 59
      spaceinvaders/GameProject/src/playground/Level5.java
  55. 58
      spaceinvaders/GameProject/src/playground/Level6.java
  56. 57
      spaceinvaders/GameProject/src/playground/Level7.java
  57. 2
      spaceinvaders/GameProject/src/playground/SpaceInvadersLevel.java
  58. 81
      spaceinvaders/GameProject/src/playground/SpaceInvadersLevelTest.java

7
spaceinvaders/GameProject/.classpath

@ -1,11 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="lib" path="lib/apache-log4j-2.13.3-bin/log4j-1.2-api-2.13.3.jar"/>
<classpathentry kind="lib" path="lib/apache-log4j-2.13.3-bin/log4j-api-2.13.3.jar"/>
<classpathentry kind="lib" path="lib/apache-log4j-2.13.3-bin/log4j-core-2.13.3.jar"/>

BIN
spaceinvaders/GameProject/bin/base/GameLoop.class

BIN
spaceinvaders/GameProject/bin/base/MultiLevelGame.class

BIN
spaceinvaders/GameProject/bin/collider/CircleCollider.class

BIN
spaceinvaders/GameProject/bin/collider/Collider.class

BIN
spaceinvaders/GameProject/bin/collider/RectCollider.class

BIN
spaceinvaders/GameProject/bin/controller/CollisionAwareEgoController.class

BIN
spaceinvaders/GameProject/bin/controller/EgoController.class

BIN
spaceinvaders/GameProject/bin/controller/EnemyController.class

BIN
spaceinvaders/GameProject/bin/controller/FallingStarController.class

BIN
spaceinvaders/GameProject/bin/controller/LimitedTimeController.class

BIN
spaceinvaders/GameProject/bin/controller/MineController.class

BIN
spaceinvaders/GameProject/bin/controller/ObjectController.class

BIN
spaceinvaders/GameProject/bin/controller/SimpleShotController.class

BIN
spaceinvaders/GameProject/bin/controller/ZickZackController.class

BIN
spaceinvaders/GameProject/bin/controller/package-info.class

BIN
spaceinvaders/GameProject/bin/gameobjects/AnimatedGameobject.class

BIN
spaceinvaders/GameProject/bin/gameobjects/EgoObject.class

BIN
spaceinvaders/GameProject/bin/gameobjects/FallingStar.class

BIN
spaceinvaders/GameProject/bin/gameobjects/GameObject.class

BIN
spaceinvaders/GameProject/bin/gameobjects/RectObject.class

BIN
spaceinvaders/GameProject/bin/gameobjects/TextObject.class

30
spaceinvaders/GameProject/bin/log4j2.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration status="OFF">
<appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d %-5level %logger{36} - %msg%n" />
</Console>
<File name="File" fileName="log\log4j.log">
<PatternLayout pattern="%d %-5level %logger{36} - %msg%n" />
</File>
</appenders>
<loggers>
<root level="warn">
<appender-ref ref="Console" />
<appender-ref ref="File" />
</root>
<Logger name="base.GameLoop" level="info">
</Logger>
<Logger name="playground" level="info">
</Logger>
</loggers>
</configuration>

BIN
spaceinvaders/GameProject/bin/playground/Animation.class

BIN
spaceinvaders/GameProject/bin/playground/HighscoreManager.class

BIN
spaceinvaders/GameProject/bin/playground/Level1.class

BIN
spaceinvaders/GameProject/bin/playground/Level2.class

BIN
spaceinvaders/GameProject/bin/playground/Level3.class

BIN
spaceinvaders/GameProject/bin/playground/Level4.class

BIN
spaceinvaders/GameProject/bin/playground/Level5.class

BIN
spaceinvaders/GameProject/bin/playground/Level6.class

BIN
spaceinvaders/GameProject/bin/playground/Level7.class

BIN
spaceinvaders/GameProject/bin/playground/LevelBoss.class

BIN
spaceinvaders/GameProject/bin/playground/LevelHitTwice.class

BIN
spaceinvaders/GameProject/bin/playground/Music$1.class

BIN
spaceinvaders/GameProject/bin/playground/Music.class

BIN
spaceinvaders/GameProject/bin/playground/Playground.class

BIN
spaceinvaders/GameProject/bin/playground/SaveGame.class

BIN
spaceinvaders/GameProject/bin/playground/SpaceInvadersLevel.class

BIN
spaceinvaders/GameProject/bin/playground/SpaceInvadersLevelTest.class

BIN
spaceinvaders/GameProject/bin/rendering/AnimationArtist.class

BIN
spaceinvaders/GameProject/bin/rendering/Artist.class

BIN
spaceinvaders/GameProject/bin/rendering/CircleArtist.class

BIN
spaceinvaders/GameProject/bin/rendering/RectArtist.class

BIN
spaceinvaders/GameProject/bin/rendering/TextArtist.class

BIN
spaceinvaders/GameProject/bin/ui/AboutFrame$1.class

BIN
spaceinvaders/GameProject/bin/ui/AboutFrame.class

BIN
spaceinvaders/GameProject/bin/ui/GamePanel.class

BIN
spaceinvaders/GameProject/bin/ui/GameUI.class

1
spaceinvaders/GameProject/highscore.txt

@ -0,0 +1 @@
13200

633
spaceinvaders/GameProject/log/log4j.log

@ -0,0 +1,633 @@
2022-04-27 15:08:28,873 INFO base.GameLoop - GUI starts
2022-04-27 15:08:42,503 INFO base.GameLoop - GUI NEW
2022-04-27 15:08:42,505 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:08:42,646 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:08:42,670 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:08:42,679 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:08:42,692 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:08:42,706 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:08:42,719 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:08:42,730 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:08:42,741 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:08:42,779 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:08:42,788 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:08:42,799 WARN playground.HighscoreManager - WARNING: Highscore file was not found and reset
2022-04-27 15:08:42,802 INFO playground.HighscoreManager - Highscore file was opened and saved score: 0
2022-04-27 15:08:42,811 INFO playground.SpaceInvadersLevel - HIGHSCORE0
2022-04-27 15:09:27,071 INFO playground.HighscoreManager - Highscore file was opened and saved score: 3400
2022-04-27 15:09:27,072 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:09:27,073 INFO base.GameLoop - reached end of levels
2022-04-27 15:09:27,074 INFO base.GameLoop - Game ends. Bye.
2022-04-27 15:11:08,991 INFO base.GameLoop - GUI starts
2022-04-27 15:11:13,117 INFO base.GameLoop - GUI NEW
2022-04-27 15:11:13,119 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:11:13,255 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:11:13,282 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:11:13,293 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:11:13,307 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:11:13,324 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:11:13,339 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:11:13,351 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:11:13,362 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:11:13,402 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:11:13,412 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:11:13,427 INFO playground.SpaceInvadersLevel - HIGHSCORE3400
2022-04-27 15:11:30,697 INFO playground.HighscoreManager - Highscore file was opened and saved score: 6000
2022-04-27 15:11:30,698 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:11:30,701 INFO base.GameLoop - reached end of levels
2022-04-27 15:11:30,702 INFO base.GameLoop - Game ends. Bye.
2022-04-27 15:12:05,792 INFO base.GameLoop - GUI starts
2022-04-27 15:12:08,004 INFO base.GameLoop - GUI NEW
2022-04-27 15:12:08,005 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:12:08,135 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:12:08,158 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:12:08,167 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:12:08,180 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:12:08,194 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:12:08,208 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:12:08,219 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:12:08,233 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:12:08,264 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:12:08,274 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:12:08,289 INFO playground.SpaceInvadersLevel - HIGHSCORE6000
2022-04-27 15:12:15,193 INFO base.GameLoop - GUI NEW
2022-04-27 15:12:15,194 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:12:15,207 INFO playground.SpaceInvadersLevel - HIGHSCORE6000
2022-04-27 15:12:42,017 INFO playground.HighscoreManager - Highscore file was opened and saved score: 7000
2022-04-27 15:12:42,018 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:12:42,019 INFO base.GameLoop - reached end of levels
2022-04-27 15:12:42,020 INFO base.GameLoop - Game ends. Bye.
2022-04-27 15:34:28,095 INFO base.GameLoop - GUI starts
2022-04-27 15:34:32,790 INFO base.GameLoop - GUI NEW
2022-04-27 15:34:32,791 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:34:32,914 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:34:32,937 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:34:32,946 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:34:32,958 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:34:32,972 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:34:32,985 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:34:32,996 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:34:33,005 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:34:33,037 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:34:33,047 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:34:33,061 INFO playground.SpaceInvadersLevel - HIGHSCORE7000
2022-04-27 15:35:02,484 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:35:02,486 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:35:02,513 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:35:02,521 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:35:02,527 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:35:02,533 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:35:02,540 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:35:02,547 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:35:02,553 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:35:02,559 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:35:02,581 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:35:02,588 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:35:02,597 INFO playground.SpaceInvadersLevel - HIGHSCORE7000
2022-04-27 15:35:16,099 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:35:16,101 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:35:16,121 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:35:16,127 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:35:16,134 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:35:16,139 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:35:16,144 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:35:16,150 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:35:16,155 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:35:16,160 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:35:16,180 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:35:16,186 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:35:16,192 INFO playground.SpaceInvadersLevel - HIGHSCORE7000
2022-04-27 15:35:44,530 INFO playground.HighscoreManager - Highscore file was opened and saved score: 9900
2022-04-27 15:35:44,531 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:35:44,533 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:35:44,552 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:35:44,558 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:35:44,563 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:35:44,568 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:35:44,573 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:35:44,578 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:35:44,582 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:35:44,589 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:35:44,608 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:35:44,614 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:35:44,620 INFO playground.SpaceInvadersLevel - HIGHSCORE9900
2022-04-27 15:35:49,481 INFO playground.HighscoreManager - Highscore file was opened and saved score: 10100
2022-04-27 15:35:49,482 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:35:49,484 INFO base.GameLoop - reached end of levels
2022-04-27 15:35:49,485 INFO base.GameLoop - Game ends. Bye.
2022-04-27 15:52:31,906 INFO base.GameLoop - GUI starts
2022-04-27 15:52:39,570 INFO base.GameLoop - GUI NEW
2022-04-27 15:52:39,571 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:52:39,698 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:52:39,723 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:52:39,732 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:52:39,745 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:52:39,759 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:52:39,772 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:52:39,783 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:52:39,793 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:52:39,827 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:52:39,837 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:52:39,855 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 15:53:03,803 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:53:03,805 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:53:03,832 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:53:03,840 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:53:03,847 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:53:03,854 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:53:03,861 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:53:03,868 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:53:03,874 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:53:03,881 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:53:03,902 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:53:03,909 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:53:03,918 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 15:53:18,658 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 15:53:18,661 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 15:53:18,679 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 15:53:18,685 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 15:53:18,692 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 15:53:18,697 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 15:53:18,702 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 15:53:18,708 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 15:53:18,713 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 15:53:18,719 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 15:53:18,738 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 15:53:18,746 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 15:53:18,752 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:48:54,703 INFO base.GameLoop - GUI starts
2022-04-27 19:49:02,497 INFO base.GameLoop - GUI NEW
2022-04-27 19:49:02,498 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:49:02,636 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 19:49:02,658 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 19:49:02,668 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 19:49:02,681 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 19:49:02,695 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 19:49:02,708 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 19:49:02,719 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 19:49:02,729 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 19:49:02,762 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 19:49:02,772 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 19:49:02,787 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:49:49,255 INFO base.GameLoop - GUI NEW
2022-04-27 19:49:49,257 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:49:49,270 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:50:04,193 INFO base.GameLoop - GUI LOAD
2022-04-27 19:50:06,082 INFO base.GameLoop - GUI NEW
2022-04-27 19:50:06,083 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:50:06,090 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:50:18,018 INFO base.GameLoop - GUI starts
2022-04-27 19:50:22,770 INFO base.GameLoop - GUI NEW
2022-04-27 19:50:22,772 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:50:22,928 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 19:50:22,954 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 19:50:22,965 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 19:50:22,980 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 19:50:22,996 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 19:50:23,011 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 19:50:23,025 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 19:50:23,035 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 19:50:23,070 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 19:50:23,080 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 19:50:23,098 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:52:03,688 INFO base.GameLoop - GUI PAUSE
2022-04-27 19:52:05,185 INFO base.GameLoop - GUI PAUSE
2022-04-27 19:53:18,085 INFO base.GameLoop - GUI starts
2022-04-27 19:53:21,127 INFO base.GameLoop - GUI NEW
2022-04-27 19:53:21,129 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:53:21,267 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 19:53:21,293 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 19:53:21,303 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 19:53:21,317 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 19:53:21,333 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 19:53:21,350 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 19:53:21,364 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 19:53:21,374 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 19:53:21,415 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 19:53:21,425 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 19:53:21,441 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:53:48,571 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 19:53:48,574 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:53:48,601 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 19:53:48,609 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 19:53:48,614 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 19:53:48,621 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 19:53:48,627 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 19:53:48,635 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 19:53:48,641 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 19:53:48,648 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 19:53:48,669 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 19:53:48,676 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 19:53:48,685 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:54:00,941 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 19:54:00,943 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:54:00,961 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 19:54:00,967 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 19:54:00,975 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 19:54:00,980 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 19:54:00,985 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 19:54:00,990 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 19:54:00,995 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 19:54:01,001 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 19:54:01,019 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 19:54:01,026 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 19:54:01,032 INFO playground.SpaceInvadersLevel - HIGHSCORE10100
2022-04-27 19:54:19,772 INFO playground.HighscoreManager - Highscore file was opened and saved score: 13200
2022-04-27 19:54:19,773 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 19:54:19,774 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-27 19:54:19,792 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-27 19:54:19,798 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-27 19:54:19,804 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-27 19:54:19,809 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-27 19:54:19,814 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-27 19:54:19,819 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-27 19:54:19,825 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-27 19:54:19,831 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-27 19:54:19,851 INFO playground.Animation - img added .\video/heart0.png
2022-04-27 19:54:19,859 INFO playground.Animation - img added .\video/heart1.png
2022-04-27 19:54:19,872 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-04-27 19:54:34,716 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-27 19:54:34,717 INFO base.GameLoop - reached end of levels
2022-04-27 19:54:34,718 INFO base.GameLoop - Game ends. Bye.
2022-04-28 13:34:43,205 INFO base.GameLoop - GUI starts
2022-04-28 13:34:47,117 INFO base.GameLoop - GUI NEW
2022-04-28 13:34:47,118 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 13:34:47,277 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 13:34:47,301 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 13:34:47,311 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 13:34:47,323 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 13:34:47,337 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 13:34:47,351 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 13:34:47,361 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 13:34:47,371 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 13:34:47,409 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 13:34:47,419 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 13:34:47,444 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-04-28 13:35:01,237 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 13:35:01,239 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 13:35:01,269 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 13:35:01,277 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 13:35:01,282 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 13:35:01,289 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 13:35:01,296 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 13:35:01,304 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 13:35:01,311 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 13:35:01,318 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 13:35:01,342 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 13:35:01,349 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 13:35:01,358 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-04-28 13:35:19,045 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 13:35:19,047 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 13:35:19,068 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 13:35:19,074 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 13:35:19,081 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 13:35:19,087 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 13:35:19,092 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 13:35:19,097 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 13:35:19,103 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 13:35:19,108 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 13:35:19,127 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 13:35:19,135 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 13:35:19,141 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-04-28 13:35:43,429 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 13:35:43,430 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 13:35:43,448 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 13:35:43,454 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 13:35:43,460 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 13:35:43,465 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 13:35:43,470 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 13:35:43,475 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 13:35:43,481 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 13:35:43,487 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 13:35:43,505 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 13:35:43,512 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 13:35:43,517 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-04-28 13:35:51,623 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 13:35:51,625 INFO base.GameLoop - reached end of levels
2022-04-28 13:35:51,626 INFO base.GameLoop - Game ends. Bye.
2022-05-05 14:07:27,447 INFO base.GameLoop - GUI starts
2022-05-05 14:07:39,713 INFO base.GameLoop - GUI NEW
2022-05-05 14:07:39,714 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:07:39,876 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:07:39,899 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:07:39,908 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:07:39,921 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:07:39,935 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:07:39,948 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:07:39,958 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:07:39,967 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:07:40,006 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:07:40,016 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:07:40,045 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:11:54,139 INFO base.GameLoop - GUI starts
2022-05-05 14:11:58,998 INFO base.GameLoop - GUI NEW
2022-05-05 14:11:59,000 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:11:59,142 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:11:59,165 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:11:59,173 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:11:59,185 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:11:59,199 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:11:59,212 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:11:59,222 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:11:59,230 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:11:59,262 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:11:59,270 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:11:59,286 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:17:38,877 INFO base.GameLoop - GUI starts
2022-05-05 14:17:41,254 INFO base.GameLoop - GUI NEW
2022-05-05 14:17:41,256 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:17:41,380 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:17:41,402 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:17:41,410 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:17:41,422 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:17:41,435 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:17:41,448 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:17:41,458 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:17:41,466 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:17:41,498 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:17:41,507 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:17:41,522 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:18:13,139 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-05 14:18:13,142 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:18:13,169 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:18:13,176 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:18:13,181 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:18:13,188 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:18:13,194 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:18:13,201 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:18:13,206 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:18:13,211 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:18:13,232 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:18:13,239 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:18:13,248 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:18:51,614 INFO base.GameLoop - GUI starts
2022-05-05 14:18:54,135 INFO base.GameLoop - GUI NEW
2022-05-05 14:18:54,136 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:18:54,255 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:18:54,277 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:18:54,285 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:18:54,296 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:18:54,310 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:18:54,322 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:18:54,331 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:18:54,339 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:18:54,370 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:18:54,378 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:18:54,392 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:44:11,981 INFO base.GameLoop - GUI starts
2022-05-05 14:44:15,197 INFO base.GameLoop - GUI NEW
2022-05-05 14:44:15,198 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:44:15,320 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:44:15,342 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:44:15,350 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:44:15,362 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:44:15,375 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:44:15,388 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:44:15,398 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:44:15,406 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:44:15,437 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:44:15,446 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:44:15,460 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:44:52,222 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-05 14:44:52,225 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:44:52,255 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:44:52,263 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:44:52,269 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:44:52,276 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:44:52,283 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:44:52,290 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:44:52,297 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:44:52,302 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:44:52,328 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:44:52,335 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:44:52,344 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:45:15,536 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-05 14:45:15,538 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:45:15,557 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:45:15,562 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:45:15,568 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:45:15,573 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:45:15,577 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:45:15,583 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:45:15,588 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:45:15,593 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:45:15,612 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:45:15,619 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:45:15,625 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:45:49,154 INFO base.GameLoop - GUI starts
2022-05-05 14:45:56,211 INFO base.GameLoop - GUI NEW
2022-05-05 14:45:56,213 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:45:56,364 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:45:56,394 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:45:56,405 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:45:56,421 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:45:56,439 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:45:56,456 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:45:56,470 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:45:56,482 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:45:56,524 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:45:56,535 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:45:56,553 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:47:56,423 INFO base.GameLoop - GUI starts
2022-05-05 14:48:00,333 INFO base.GameLoop - GUI NEW
2022-05-05 14:48:00,334 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:48:00,462 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:48:00,485 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:48:00,494 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:48:00,507 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:48:00,520 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:48:00,532 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:48:00,542 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:48:00,551 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:48:00,585 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:48:00,593 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:48:00,607 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:48:10,233 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-05 14:48:10,235 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:48:10,267 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:48:10,275 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:48:10,281 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:48:10,288 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:48:10,294 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:48:10,302 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:48:10,308 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:48:10,314 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:48:10,338 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:48:10,345 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:48:10,355 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:53:39,102 INFO base.GameLoop - GUI starts
2022-05-05 14:53:42,902 INFO base.GameLoop - GUI NEW
2022-05-05 14:53:42,903 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:53:43,030 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:53:43,051 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:53:43,060 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:53:43,072 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:53:43,085 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:53:43,098 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:53:43,107 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:53:43,116 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:53:43,148 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:53:43,157 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:53:43,170 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:53:59,318 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-05 14:53:59,320 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:53:59,349 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:53:59,356 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:53:59,361 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:53:59,367 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:53:59,374 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:53:59,380 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:53:59,385 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:53:59,390 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:53:59,412 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:53:59,418 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:53:59,428 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:54:10,678 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-05 14:54:10,680 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-05 14:54:10,700 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-05 14:54:10,705 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-05 14:54:10,711 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-05 14:54:10,716 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-05 14:54:10,721 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-05 14:54:10,725 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-05 14:54:10,730 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-05 14:54:10,734 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-05 14:54:10,752 INFO playground.Animation - img added .\video/heart0.png
2022-05-05 14:54:10,758 INFO playground.Animation - img added .\video/heart1.png
2022-05-05 14:54:10,763 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-05 14:54:18,912 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-05 14:54:18,914 INFO base.GameLoop - reached end of levels
2022-05-05 14:54:18,915 INFO base.GameLoop - Game ends. Bye.
2022-05-06 10:45:35,421 INFO base.GameLoop - GUI starts
2022-05-06 10:45:39,164 INFO base.GameLoop - GUI NEW
2022-05-06 10:45:39,165 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 10:45:39,360 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 10:45:39,386 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 10:45:39,395 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 10:45:39,409 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 10:45:39,425 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 10:45:39,440 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 10:45:39,451 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 10:45:39,462 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 10:45:39,506 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 10:45:39,517 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 10:45:39,545 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 10:45:56,430 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-06 10:45:56,432 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 10:45:56,461 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 10:45:56,469 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 10:45:56,474 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 10:45:56,481 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 10:45:56,488 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 10:45:56,495 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 10:45:56,501 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 10:45:56,507 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 10:45:56,530 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 10:45:56,539 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 10:45:56,549 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 10:46:07,810 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-06 10:46:07,813 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 10:46:07,837 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 10:46:07,843 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 10:46:07,850 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 10:46:07,855 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 10:46:07,861 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 10:46:07,868 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 10:46:07,873 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 10:46:07,877 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 10:46:07,896 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 10:46:07,902 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 10:46:07,908 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 11:21:08,609 INFO base.GameLoop - GUI starts
2022-05-06 11:21:12,463 INFO base.GameLoop - GUI NEW
2022-05-06 11:21:12,464 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 11:21:12,631 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 11:21:12,658 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 11:21:12,667 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 11:21:12,682 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 11:21:12,697 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 11:21:12,712 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 11:21:12,725 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 11:21:12,734 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 11:21:12,771 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 11:21:12,782 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 11:21:12,799 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 11:21:21,179 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 11:21:21,214 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 11:21:21,222 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 11:21:21,228 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 11:21:21,235 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 11:21:21,242 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 11:21:21,250 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 11:21:21,257 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 11:21:21,263 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 11:21:21,287 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 11:21:21,293 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 11:21:21,302 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 11:21:35,394 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-06 11:21:35,396 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 11:21:35,416 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 11:21:35,422 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 11:21:35,429 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 11:21:35,434 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 11:21:35,439 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 11:21:35,445 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 11:21:35,450 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 11:21:35,457 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 11:21:35,477 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 11:21:35,485 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 11:21:35,492 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 11:22:53,762 INFO base.GameLoop - GUI starts
2022-05-06 11:22:57,195 INFO base.GameLoop - GUI NEW
2022-05-06 11:22:57,196 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 11:22:57,402 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 11:22:57,430 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 11:22:57,439 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 11:22:57,452 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 11:22:57,468 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 11:22:57,484 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 11:22:57,500 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 11:22:57,514 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 11:22:57,549 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 11:22:57,560 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 11:22:57,577 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 11:23:07,115 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 11:23:07,147 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 11:23:07,156 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 11:23:07,163 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 11:23:07,171 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 11:23:07,179 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 11:23:07,187 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 11:23:07,193 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 11:23:07,200 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 11:23:07,233 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 11:23:07,241 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 11:23:07,250 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 15:05:54,783 INFO base.GameLoop - GUI starts
2022-05-06 15:05:57,334 INFO base.GameLoop - GUI NEW
2022-05-06 15:05:57,336 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 15:05:57,490 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 15:05:57,515 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 15:05:57,524 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 15:05:57,537 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 15:05:57,552 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 15:05:57,565 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 15:05:57,576 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 15:05:57,585 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 15:05:57,619 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 15:05:57,629 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 15:05:57,644 INFO playground.SpaceInvadersLevel - HIGHSCORE13200
2022-05-06 15:07:31,320 INFO base.GameLoop - GUI starts
2022-05-06 15:07:34,212 INFO base.GameLoop - GUI NEW
2022-05-06 15:07:34,213 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-06 15:07:34,340 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-06 15:07:34,361 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-06 15:07:34,370 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-06 15:07:34,382 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-06 15:07:34,396 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-06 15:07:34,410 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-06 15:07:34,420 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-06 15:07:34,429 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-06 15:07:34,465 INFO playground.Animation - img added .\video/heart0.png
2022-05-06 15:07:34,475 INFO playground.Animation - img added .\video/heart1.png
2022-05-06 15:07:34,489 INFO playground.SpaceInvadersLevel - HIGHSCORE13200

24
spaceinvaders/GameProject/src/base/MultiLevelGame.java

@ -0,0 +1,24 @@
package base;
import java.io.IOException;
import playground.Level5;
import playground.Level6;
import playground.Level7;
public class MultiLevelGame extends GameLoop {
@Override
void defineLevels() {
this.resetLevels();
this.addLevel(new Level5());
this.addLevel(new Level6());
this.addLevel(new Level7());
}
public static void main(String[] args) throws IOException {
MultiLevelGame mlg = new MultiLevelGame();
mlg.runGame(args);
}
}

2
spaceinvaders/GameProject/src/log4j2.xml

@ -7,7 +7,7 @@
<PatternLayout pattern="%d %-5level %logger{36} - %msg%n" />
</Console>
<File name="File" fileName="log/log4j.log">
<File name="File" fileName="log\log4j.log">
<PatternLayout pattern="%d %-5level %logger{36} - %msg%n" />
</File>

59
spaceinvaders/GameProject/src/playground/Level5.java

@ -0,0 +1,59 @@
package playground;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.RenderingHints;
import java.awt.font.TextAttribute;
import java.awt.image.BufferedImage;
import java.io.*;
import java.text.AttributedString;
import java.util.LinkedList;
import controller.EnemyController;
import controller.FallingStarController;
import controller.LimitedTimeController;
import controller.ObjectController;
import controller.EgoController;
import controller.CollisionAwareEgoController;
import gameobjects.AnimatedGameobject;
import gameobjects.FallingStar;
import gameobjects.GameObject;
import gameobjects.EgoObject;
import gameobjects.TextObject;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
public class Level5 extends SpaceInvadersLevel {
protected static final double ENEMYSPEEDX = 160;
protected static final double ENEMYSPEEDY = 80;
protected static final int NR_ENEMIES = 5;
@Override
void actionIfEnemyIsHit(GameObject e, GameObject shot) {
super.actionIfEnemyIsHit(e, shot);
System.out.println("AUA!");
}
@Override
protected String getStartupMessage() {
return "Level5, get ready!";
}
@Override
protected double calcEnemySpeedX() {
return Level5.ENEMYSPEEDX;
}
@Override
protected double calcEnemySpeedY() {
return Level5.ENEMYSPEEDY;
}
@Override
protected int calcNrEnemies() {
return Level5.NR_ENEMIES;
}
}

58
spaceinvaders/GameProject/src/playground/Level6.java

@ -0,0 +1,58 @@
package playground;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.RenderingHints;
import java.awt.font.TextAttribute;
import java.awt.image.BufferedImage;
import java.io.*;
import java.text.AttributedString;
import java.util.LinkedList;
import controller.EnemyController;
import controller.FallingStarController;
import controller.LimitedTimeController;
import controller.ObjectController;
import controller.EgoController;
import controller.CollisionAwareEgoController;
import gameobjects.AnimatedGameobject;
import gameobjects.FallingStar;
import gameobjects.GameObject;
import gameobjects.EgoObject;
import gameobjects.TextObject;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
public class Level6 extends SpaceInvadersLevel {
protected static final double ENEMYSPEEDX = 480;
protected static final double ENEMYSPEEDY = 80;
protected static final int NR_ENEMIES = 12;
@Override
void actionIfEnemyIsHit(GameObject e, GameObject shot) {
super.actionIfEnemyIsHit(e, shot);
System.out.println("AUA!");
}
@Override
protected String getStartupMessage() {
return "Level6, get ready!";
}
@Override
protected double calcEnemySpeedX() {
return Level6.ENEMYSPEEDX;
}
@Override
protected double calcEnemySpeedY() {
return Level6.ENEMYSPEEDY;
}
@Override
protected int calcNrEnemies() {
return Level6.NR_ENEMIES;
}
}

57
spaceinvaders/GameProject/src/playground/Level7.java

@ -0,0 +1,57 @@
package playground;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.RenderingHints;
import java.awt.font.TextAttribute;
import java.awt.image.BufferedImage;
import java.io.*;
import java.text.AttributedString;
import java.util.LinkedList;
import controller.EnemyController;
import controller.FallingStarController;
import controller.LimitedTimeController;
import controller.ObjectController;
import controller.EgoController;
import controller.CollisionAwareEgoController;
import gameobjects.AnimatedGameobject;
import gameobjects.FallingStar;
import gameobjects.GameObject;
import gameobjects.EgoObject;
import gameobjects.TextObject;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
public class Level7 extends SpaceInvadersLevel {
protected static final double ENEMYSPEEDX = 800;
protected static final double ENEMYSPEEDY = 140;
protected static final int NR_ENEMIES = 21;
@Override
void actionIfEnemyIsHit(GameObject e, GameObject shot) {
super.actionIfEnemyIsHit(e, shot);
System.out.println("AUA!");
}
@Override
protected String getStartupMessage() {
return "Level7, get ready!";
}
@Override
protected double calcEnemySpeedX() {
return Level7.ENEMYSPEEDX;
}
@Override
protected double calcEnemySpeedY() {
return Level7.ENEMYSPEEDY;
}
@Override
protected int calcNrEnemies() {
return Level7.NR_ENEMIES;
}
}

2
spaceinvaders/GameProject/src/playground/SpaceInvadersLevel.java

@ -78,7 +78,7 @@ public class SpaceInvadersLevel extends Playground {
protected Animation enemyAnim = null;
protected Animation heartAnim = null;
private static Logger logger = LogManager.getLogger(SpaceInvadersLevel.class);
protected static Logger logger = LogManager.getLogger(SpaceInvadersLevel.class);
public SpaceInvadersLevel() {
super();

81
spaceinvaders/GameProject/src/playground/SpaceInvadersLevelTest.java

@ -0,0 +1,81 @@
package playground;
import static org.junit.Assert.assertTrue;
import java.awt.Color;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import gameobjects.EgoObject;
import gameobjects.GameObject;
import gameobjects.RectObject;
/**
* Tests {@link SpaceInvadersLevel} for
* <ol>
* <li>calcEnemySpeedX() returns the same value as constant SpaceInvadersLevel.ENEMYSPEEDX
* <li>calcEnemySpeedY() returns the same value as constant SpaceInvadersLevel.ENEMYSPEEDY
* <li>calcNrEnemies() returns the same value as constant SpaceInvadersLevel.NR_ENEMIES
* <li>actionIfEnemyIsHit() adds 200 points to score
* <li>actionIfEgoObjectIsHit() reduces number of lives (egoLives)
* </ol>
* @author jkonert
*
*/
class SpaceInvadersLevelTest {
private static SpaceInvadersLevel myLevel;
@BeforeAll
static void setUpBeforeClass() throws Exception {
myLevel = new SpaceInvadersLevel();
SpaceInvadersLevel.setGlobalFlag("egoLives", 5);
SpaceInvadersLevel.setGlobalFlag("points", 500);
SpaceInvadersLevel.setGlobalFlag("highscore", 5000);
}
@AfterAll
static void tearDownAfterClass() throws Exception {
// nothing
}
@Test
void testCalcEnemySpeedX() {
assertTrue("EnemySpeedX is as in SpaceInvadersLevel defined", myLevel.calcEnemySpeedX() == SpaceInvadersLevel.ENEMYSPEEDX);
}
@Test
void testCalcEnemySpeedY() {
assertTrue("EnemySpeedY is as in SpaceInvadersLevel defined", myLevel.calcEnemySpeedY() == SpaceInvadersLevel.ENEMYSPEEDY);
}
@Test
void testCalcNrEnemies() {
assertTrue("NrOfEnemies is as in SpaceInvadersLevel defined", myLevel.calcNrEnemies() == SpaceInvadersLevel.NR_ENEMIES);
}
@Test
void testActionIfEnemyIsHitPointsUp() {
Integer numPointsBefore = (Integer)Playground.getGlobalFlag("points");
GameObject dummyShot = new RectObject("shot1", myLevel, 0,0,0,0, 12, 12, Color.WHITE);
GameObject dummyEnemy = new RectObject("ego1", myLevel, 0,0,0,0, 12, 12, Color.BLACK);
myLevel.addObject(dummyShot);
myLevel.addObject(dummyEnemy);
myLevel.actionIfEnemyIsHit(dummyEnemy, dummyShot);; // this is the call under test
Integer numPointsAfter = (Integer)Playground.getGlobalFlag("points"); // changed?
assertTrue("numPoints is up +200 after EnemyIsHit", numPointsAfter == numPointsBefore + 200); // points are set +200 , check.
}
@Test
void testActionIfEgoObjectIsHitLivesDown() {
Integer numLivesBefore = (Integer)Playground.getGlobalFlag("egoLives");
GameObject dummyShot = new RectObject("shot1", myLevel, 0,0,0,0, 12, 12, Color.RED);
GameObject dummyEgo = new EgoObject("ego1", myLevel, 0,0,0,0, 5);
myLevel.addObject(dummyShot);
myLevel.actionIfEgoObjectIsHit(dummyShot, dummyEgo); // this is the call under test
Integer numLivesAfter = (Integer)Playground.getGlobalFlag("egoLives"); // changed?
assertTrue("numLives is reduced by one ifEgoIsHit", numLivesAfter == numLivesBefore - 1); // lives is reduced by one
}
}
Loading…
Cancel
Save