Browse Source

ha7 erweitert - noch net fertig ;)

master
fdai7222 2 years ago
parent
commit
f04b6b78cd
  1. 11
      spaceinvaders/GameProject/.project
  2. 7
      spaceinvaders/GameProject/bin/.gitignore
  3. BIN
      spaceinvaders/GameProject/bin/base/BreakoutGame.class
  4. 30
      spaceinvaders/GameProject/log/log4j.log
  5. 2
      spaceinvaders/GameProject/src/base/BreakoutGame.java
  6. 13
      spaceinvaders/GameProject/src/playground/BreakoutLevel1.java

11
spaceinvaders/GameProject/.project

@ -14,4 +14,15 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1654173149171</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

7
spaceinvaders/GameProject/bin/.gitignore

@ -1,8 +1 @@
/base/
/collider/
/controller/
/gameobjects/
/log4j2.xml
/playground/
/rendering/
/ui/

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

30
spaceinvaders/GameProject/log/log4j.log

@ -1410,3 +1410,33 @@
2022-06-02 09:09:43,428 INFO playground.Animation - img added ./video/heart0.png
2022-06-02 09:09:43,430 INFO playground.Animation - img added ./video/heart1.png
2022-06-02 09:09:43,441 INFO playground.SpaceInvadersLevel - HIGHSCORE17200
2022-06-02 13:57:54,470 INFO playground.SpaceInvadersLevel - PREPARE
2022-06-02 13:57:54,535 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-06-02 13:57:54,544 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-06-02 13:57:54,547 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-06-02 13:57:54,551 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-06-02 13:57:54,555 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-06-02 13:57:54,559 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-06-02 13:57:54,563 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-06-02 13:57:54,566 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-06-02 13:57:54,584 INFO playground.Animation - img added .\video/heart0.png
2022-06-02 13:57:54,588 INFO playground.Animation - img added .\video/heart1.png
2022-06-02 13:57:54,593 INFO playground.SpaceInvadersLevel - HIGHSCORE17200
2022-06-02 13:59:07,039 INFO playground.SpaceInvadersLevel - PREPARE
2022-06-02 13:59:07,098 INFO playground.Animation - img added .\video/sweetAlien0.png
2022-06-02 13:59:07,107 INFO playground.Animation - img added .\video/sweetAlien1.png
2022-06-02 13:59:07,110 INFO playground.Animation - img added .\video/sweetAlien2.png
2022-06-02 13:59:07,114 INFO playground.Animation - img added .\video/sweetAlien3.png
2022-06-02 13:59:07,119 INFO playground.Animation - img added .\video/sweetAlien4.png
2022-06-02 13:59:07,123 INFO playground.Animation - img added .\video/sweetAlien5.png
2022-06-02 13:59:07,126 INFO playground.Animation - img added .\video/sweetAlien6.png
2022-06-02 13:59:07,129 INFO playground.Animation - img added .\video/sweetAlien7.png
2022-06-02 13:59:07,138 INFO playground.Animation - img added .\video/heart0.png
2022-06-02 13:59:07,141 INFO playground.Animation - img added .\video/heart1.png
2022-06-02 13:59:07,145 INFO playground.SpaceInvadersLevel - HIGHSCORE17200
2022-06-02 13:59:10,663 INFO playground.LevelMovingObjects - ego hit a letal RectObject. Game ends NOW
2022-06-02 15:09:10,214 INFO playground.BreakoutLevel1 - ball created.
2022-06-02 15:11:50,649 INFO playground.BreakoutLevel1 - ball created.
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.

2
spaceinvaders/GameProject/src/base/BreakoutGame.java

@ -19,7 +19,7 @@ public class BreakoutGame extends GameLoop {
@Override
public void defineLevels() {
this.resetLevels(); // removes Level1 added by superclass constructor
// this.addLevel(new BreakoutLevel1()); // FIXME add this as soon as your level exists
this.addLevel(new BreakoutLevel1()); // FIXME add this as soon as your level exists
}
/**

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

@ -45,13 +45,24 @@ 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);
// TODO Auto-generated method stub
return null;
return brick;
}
@Override
public void prepareLevel(String level) {
GameObject ego1 = this.createEgoObject();
this.ego = ego1;
this.addObject(ego1);
GameObject ball1 = this.createBall();
this.ball = ball1;
this.addObject(ball1);
// TODO Auto-generated method stub
}

Loading…
Cancel
Save