Browse Source

ha7 fast fertig - läuft schon mal :D

master
fdai7222 2 years ago
parent
commit
fe85ef2ff4
  1. 56
      spaceinvaders/GameProject/log/log4j.log
  2. 13
      spaceinvaders/GameProject/src/playground/BreakoutLevel1.java

56
spaceinvaders/GameProject/log/log4j.log

@ -1440,3 +1440,59 @@
2022-06-02 15:12:28,062 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 15:14:46,362 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 15:14:46,369 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:01:08,056 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:01:08,074 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:01:39,190 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:01:39,197 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:02:09,719 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:02:09,726 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:02:33,141 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:02:33,148 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:02:44,995 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:02:45,002 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:02:53,937 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:02:53,945 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:03:06,783 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:03:06,791 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:03:17,821 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:03:17,829 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:14:50,343 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:14:50,350 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 18:55:05,789 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 18:55:05,798 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 20:41:34,745 INFO playground.SpaceInvadersLevel - PREPARE
2022-06-02 20:41:34,820 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-06-02 20:41:34,830 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-06-02 20:41:34,834 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-06-02 20:41:34,840 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-06-02 20:41:34,847 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-06-02 20:41:34,852 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-06-02 20:41:34,856 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-06-02 20:41:34,860 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-06-02 20:41:34,876 INFO playground.Animation - img added .\video/heart0.png
2022-06-02 20:41:34,880 INFO playground.Animation - img added .\video/heart1.png
2022-06-02 20:41:34,888 INFO playground.SpaceInvadersLevel - HIGHSCORE17200
2022-06-02 20:43:09,676 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 20:43:09,684 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:02:25,152 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:02:25,160 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:03:35,292 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:03:35,299 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:05:03,652 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:05:03,659 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:32:23,047 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:32:23,054 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:33:20,036 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:33:20,042 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:35:59,708 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:35:59,714 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:37:37,808 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:37:37,815 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:38:58,447 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:38:58,453 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:39:27,377 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:39:27,384 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:40:44,944 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:40:44,951 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 23:46:10,871 INFO playground.BreakoutLevel1 - ego created.
2022-06-02 23:46:10,878 INFO playground.BreakoutLevel1 - ball created.

13
spaceinvaders/GameProject/src/playground/BreakoutLevel1.java

@ -15,6 +15,8 @@ public class BreakoutLevel1 extends BreakoutLevelBase {
@Override
protected void actionIfBallHitsBrick(GameObject ball, GameObject brick) {
deleteObject(brick.getId());
ball.setVX(ball.getVX()*-1);
// TODO Auto-generated method stub
}
@ -22,6 +24,7 @@ public class BreakoutLevel1 extends BreakoutLevelBase {
@Override
protected void actionIfBallHitsEgo(GameObject ball, GameObject ego) {
// TODO Auto-generated method stub
ball.setVY(ball.getVY()*-1);
}
@ -45,7 +48,8 @@ public class BreakoutLevel1 extends BreakoutLevelBase {
@Override
protected GameObject createBrick(int row, int column) {
RectObject brick = new RectObject("brick"+row+column, this, 900, 900, 0, 0, 40, 40, Color.GREEN);
RectObject brick = new RectObject("brick"+row+column, this, 30 + row *60, 30 + column * 60, 0, 0, 40, 40, Color.GREEN);
brick.addCollider(new RectCollider("brickcoll"+row+column, brick, 40, 40));
// TODO Auto-generated method stub
@ -63,6 +67,13 @@ public class BreakoutLevel1 extends BreakoutLevelBase {
this.ball = ball1;
this.addObject(ball1);
GameObject brick00 = this.createBrick(0, 0);
GameObject brick01 = this.createBrick(0, 1);
GameObject brick11 = this.createBrick(1, 1);
this.addObject(brick00);
this.addObject(brick01);
this.addObject(brick11);
// TODO Auto-generated method stub
}

Loading…
Cancel
Save