Browse Source

grüne box hinzugefügt

master
fdai7222 3 years ago
parent
commit
da03e24f87
  1. 2
      spaceinvaders/GameProject/bin/.gitignore
  2. BIN
      spaceinvaders/GameProject/bin/playground/LevelMovingObjects.class
  3. 45
      spaceinvaders/GameProject/log/log4j.log
  4. 1
      spaceinvaders/GameProject/src/controller/ReboundController.java
  5. 6
      spaceinvaders/GameProject/src/playground/LevelMovingObjects.java

2
spaceinvaders/GameProject/bin/.gitignore

@ -1,2 +1,2 @@
/playground/
/controller/
/playground/

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

45
spaceinvaders/GameProject/log/log4j.log

@ -1181,3 +1181,48 @@
2022-05-18 17:20:56,882 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-18 17:20:56,883 INFO base.GameLoop - reached end of levels
2022-05-18 17:20:56,883 INFO base.GameLoop - Game ends. Bye.
2022-05-19 14:01:53,056 INFO base.GameLoop - GUI starts
2022-05-19 14:01:55,111 INFO base.GameLoop - GUI NEW
2022-05-19 14:01:55,111 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-19 14:01:55,171 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-19 14:01:55,178 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-19 14:01:55,181 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-19 14:01:55,185 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-19 14:01:55,188 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-19 14:01:55,192 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-19 14:01:55,195 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-19 14:01:55,197 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-19 14:01:55,209 INFO playground.Animation - img added .\video/heart0.png
2022-05-19 14:01:55,213 INFO playground.Animation - img added .\video/heart1.png
2022-05-19 14:01:55,222 INFO playground.SpaceInvadersLevel - HIGHSCORE17200
2022-05-19 14:02:32,554 INFO base.GameLoop - GUI starts
2022-05-19 14:02:34,270 INFO base.GameLoop - GUI NEW
2022-05-19 14:02:34,270 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-19 14:02:34,313 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-19 14:02:34,320 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-19 14:02:34,322 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-19 14:02:34,326 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-19 14:02:34,329 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-19 14:02:34,332 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-19 14:02:34,335 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-19 14:02:34,337 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-19 14:02:34,344 INFO playground.Animation - img added .\video/heart0.png
2022-05-19 14:02:34,347 INFO playground.Animation - img added .\video/heart1.png
2022-05-19 14:02:34,350 INFO playground.SpaceInvadersLevel - HIGHSCORE17200
2022-05-19 14:04:25,086 INFO base.GameLoop - GUI starts
2022-05-19 14:04:26,763 INFO base.GameLoop - GUI NEW
2022-05-19 14:04:26,764 INFO playground.SpaceInvadersLevel - PREPARE
2022-05-19 14:04:26,806 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-05-19 14:04:26,813 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-05-19 14:04:26,815 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-05-19 14:04:26,818 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-05-19 14:04:26,821 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-05-19 14:04:26,825 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-05-19 14:04:26,827 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-05-19 14:04:26,829 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-05-19 14:04:26,836 INFO playground.Animation - img added .\video/heart0.png
2022-05-19 14:04:26,838 INFO playground.Animation - img added .\video/heart1.png
2022-05-19 14:04:26,841 INFO playground.SpaceInvadersLevel - HIGHSCORE17200
2022-05-19 14:04:49,855 INFO playground.SpaceInvadersLevel - no enemies left, level done.
2022-05-19 14:04:49,856 INFO base.GameLoop - reached end of levels
2022-05-19 14:04:49,856 INFO base.GameLoop - Game ends. Bye.

1
spaceinvaders/GameProject/src/controller/ReboundController.java

@ -1,7 +1,6 @@
package controller;
public class ReboundController extends ObjectController {
@Override
public void updateObject() {
// TODO Auto-generated method stub

6
spaceinvaders/GameProject/src/playground/LevelMovingObjects.java

@ -9,7 +9,7 @@ import controller.*;
*/
public class LevelMovingObjects extends SpaceInvadersLevel {
// TODO your code here
@Override
public void prepareLevel(String id) {
@ -18,6 +18,10 @@ public class LevelMovingObjects extends SpaceInvadersLevel {
this.addObject(blueBox);
ReboundController boxControl = new ReboundController();
blueBox.addController(boxControl);
RectObject greenBox = new RectObject("GreenBox", this, 200, 200, 50, 170, 30, 30, Color.GREEN);
this.addObject(greenBox);
ReboundController boxControl_2 = new ReboundController();
greenBox.addController(boxControl_2);
}

Loading…
Cancel
Save