Added class Level.java
- This class handles the levels:
- ArrayList<Wall> walls is now an element of Level.java
- Player player is now an element of Level.java
- Level lvl is now an element of KarpfenGame.java
- A Level has a certain length (int xMax) that can be longer than
KarpfenGame.WIDTH
- The Level is filled with walls, that are created in the Constructor of
Level
- The placement of the walls are now variable through a whole lot of
variables (e.g. widthMu, dxMu etc)
- The placement of the walls should (almost) not have changed.
- Walls no more move
- Collision between Player and Wall is now processed in
KarpfenGame.update()
- Wall.java now has a draw()-method of it's own
- When the player reaches a certain limit (playerTrigger), the "camera"
moves. This is done with the variable xOffset, wich is given to the
draw()-methods of Player.java and Wall.java
- and a whole lot more probably...