Browse Source

added comments for HA03

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

2
bin/.gitignore

@ -1,2 +0,0 @@
/playground/
/base/

BIN
bin/base/GameLoop.class

BIN
bin/base/MultiLevelGame.class

BIN
bin/collider/CircleCollider.class

BIN
bin/collider/Collider.class

BIN
bin/collider/RectCollider.class

BIN
bin/controller/CollisionAwareEgoController.class

BIN
bin/controller/EgoController.class

BIN
bin/controller/EnemyController.class

BIN
bin/controller/FallingStarController.class

BIN
bin/controller/LimitedTimeController.class

BIN
bin/controller/MineController.class

BIN
bin/controller/ObjectController.class

BIN
bin/controller/SimpleShotController.class

BIN
bin/controller/ZickZackController.class

BIN
bin/controller/package-info.class

BIN
bin/gameobjects/AnimatedGameobject.class

BIN
bin/gameobjects/EgoObject.class

BIN
bin/gameobjects/FallingStar.class

BIN
bin/gameobjects/GameObject.class

BIN
bin/gameobjects/RectObject.class

BIN
bin/gameobjects/TextObject.class

4
bin/playground/.gitignore

@ -0,0 +1,4 @@
/Level5.class
/Level6.class
/Level7.class
/SpaceInvadersLevelAua.class

BIN
bin/playground/Animation.class

BIN
bin/playground/HighscoreManager.class

BIN
bin/playground/Level1.class

BIN
bin/playground/Level2.class

BIN
bin/playground/Level3.class

BIN
bin/playground/Level4.class

BIN
bin/playground/LevelBoss.class

BIN
bin/playground/LevelHitTwice.class

BIN
bin/playground/Music$1.class

BIN
bin/playground/Music.class

BIN
bin/playground/Playground.class

BIN
bin/playground/SaveGame.class

BIN
bin/playground/SpaceInvadersLevel.class

BIN
bin/playground/SpaceInvadersLevelTest.class

BIN
bin/rendering/AnimationArtist.class

BIN
bin/rendering/Artist.class

BIN
bin/rendering/CircleArtist.class

BIN
bin/rendering/RectArtist.class

BIN
bin/rendering/TextArtist.class

BIN
bin/ui/AboutFrame$1.class

BIN
bin/ui/AboutFrame.class

BIN
bin/ui/GamePanel.class

BIN
bin/ui/GameUI.class

95
log/log4j.log

@ -183,3 +183,98 @@
2022-04-24 15:33:34,404 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-24 15:33:34,404 INFO base.GameLoop - reached end of levels
2022-04-24 15:33:34,404 INFO base.GameLoop - Game ends. Bye.
2022-04-28 09:01:52,704 INFO base.GameLoop - GUI starts
2022-04-28 09:01:56,523 INFO base.GameLoop - GUI NEW
2022-04-28 09:01:56,524 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 09:01:56,540 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 09:01:56,542 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 09:01:56,543 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 09:01:56,544 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 09:01:56,546 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 09:01:56,547 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 09:01:56,548 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 09:01:56,549 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 09:01:56,551 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 09:01:56,552 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 09:01:56,553 INFO playground.SpaceInvadersLevel - HIGHSCORE22500
2022-04-28 09:02:23,786 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 09:02:23,786 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 09:02:23,788 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 09:02:23,789 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 09:02:23,790 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 09:02:23,791 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 09:02:23,791 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 09:02:23,792 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 09:02:23,793 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 09:02:23,794 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 09:02:23,795 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 09:02:23,796 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 09:02:23,797 INFO playground.SpaceInvadersLevel - HIGHSCORE22500
2022-04-28 09:02:45,225 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 09:02:45,225 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 09:02:45,226 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 09:02:45,227 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 09:02:45,228 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 09:02:45,229 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 09:02:45,229 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 09:02:45,230 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 09:02:45,231 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 09:02:45,231 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 09:02:45,233 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 09:02:45,233 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 09:02:45,234 INFO playground.SpaceInvadersLevel - HIGHSCORE22500
2022-04-28 09:03:02,925 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 09:03:02,925 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 09:03:02,927 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 09:03:02,928 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 09:03:02,928 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 09:03:02,929 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 09:03:02,930 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 09:03:02,930 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 09:03:02,931 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 09:03:02,932 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 09:03:02,933 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 09:03:02,934 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 09:03:02,934 INFO playground.SpaceInvadersLevel - HIGHSCORE22500
2022-04-28 09:03:07,243 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 09:03:07,243 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 09:03:07,244 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 09:03:07,245 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 09:03:07,246 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 09:03:07,246 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 09:03:07,247 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 09:03:07,248 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 09:03:07,248 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 09:03:07,249 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 09:03:07,250 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 09:03:07,251 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 09:03:07,251 INFO playground.SpaceInvadersLevel - HIGHSCORE22500
2022-04-28 09:03:12,373 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 09:03:12,373 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 09:03:12,374 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 09:03:12,375 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 09:03:12,376 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 09:03:12,376 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 09:03:12,377 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 09:03:12,378 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 09:03:12,378 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 09:03:12,379 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 09:03:12,380 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 09:03:12,381 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 09:03:12,381 INFO playground.SpaceInvadersLevel - HIGHSCORE22500
2022-04-28 09:03:19,579 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 09:03:19,579 INFO playground.SpaceInvadersLevel - PREPARE
2022-04-28 09:03:19,580 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-04-28 09:03:19,581 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-04-28 09:03:19,582 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-04-28 09:03:19,583 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-04-28 09:03:19,583 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-04-28 09:03:19,584 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-04-28 09:03:19,585 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-04-28 09:03:19,585 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-04-28 09:03:19,586 INFO playground.Animation - img added .\video/heart0.png
2022-04-28 09:03:19,587 INFO playground.Animation - img added .\video/heart1.png
2022-04-28 09:03:19,588 INFO playground.SpaceInvadersLevel - HIGHSCORE22500
2022-04-28 09:03:32,372 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-04-28 09:03:32,372 INFO base.GameLoop - reached end of levels
2022-04-28 09:03:32,372 INFO base.GameLoop - Game ends. Bye.

6
src/playground/Level5.java

@ -1,3 +1,4 @@
//neues Level von Coding Team 66
package playground;
@ -11,14 +12,19 @@ public class Level5 extends SpaceInvadersLevelAua {
return "Level5, get ready!";
}
//number of Enemys
@Override
protected int calcNrEnemies() {
return 5;
}
//speed of Enemys in X-Direction
@Override
protected double calcEnemySpeedX() {
return 160;
}
//speed of Enemys in Y-Direction
@Override
protected double calcEnemySpeedY() {
return 80;

6
src/playground/Level6.java

@ -1,3 +1,4 @@
//neues Level von Team 66
package playground;
@ -11,14 +12,19 @@ public class Level6 extends SpaceInvadersLevelAua {
return "Level6, get ready!";
}
// number of Enemys
@Override
protected int calcNrEnemies() {
return 12;
}
//speed of Enemys in X-Direction
@Override
protected double calcEnemySpeedX() {
return 480;
}
//speed of Enemys in Y-Direction
@Override
protected double calcEnemySpeedY() {
return 80;

7
src/playground/Level7.java

@ -1,3 +1,4 @@
//neues Level von Team 66
package playground;
@ -10,14 +11,20 @@ public class Level7 extends SpaceInvadersLevelAua {
protected String getStartupMessage() {
return "Level7, get ready!";
}
//number of Enemys
@Override
protected int calcNrEnemies() {
return 21;
}
//speed of Enemys in X-Direction
@Override
protected double calcEnemySpeedX() {
return 800;
}
//speed of Enemys in Y-Direction
@Override
protected double calcEnemySpeedY() {
return 140;

3
src/playground/SpaceInvadersLevelAua.java

@ -1,3 +1,4 @@
//neue Unterklasse von SpaceInvadersLevel von Teamm 66
package playground;
// import utilities.* ;
@ -48,6 +49,8 @@ public class SpaceInvadersLevelAua extends SpaceInvadersLevel {
* @param e enemy which was hit
* @param shot the shot object that hit the enemy
*/
//überschreibt Ausgabe auf Konsole: "AUA!!"
@Override
void actionIfEnemyIsHit(GameObject e, GameObject shot) {
double gameTime = this.getGameTime();

Loading…
Cancel
Save