Package playground

Class LevelMovingObjects


public class LevelMovingObjects extends SpaceInvadersLevel
This level adds two distracting objects to the canvas that cannot collide but bounce around all the time.
  • Constructor Details

    • LevelMovingObjects

      public LevelMovingObjects()
  • Method Details

    • prepareLevel

      public void prepareLevel(String id)
      Description copied from class: SpaceInvadersLevel
      initially sets up the level. Not called by user interaction, but called every time a layer is restarted from scratch. So make sure that this is possible. Here, resources are loaded only once even if method is called several times.
      Overrides:
      prepareLevel in class SpaceInvadersLevel
      Parameters:
      id - String identifies level.