public class Bat extends Entity
Bat enemy.
  • Constructor Details

    • Bat

      public Bat(GamePanel gamePanel, int xPosition)
      Creates a Bat instance passing the GamePanel reference and initial position of the entity.
      Parameters:
      gamePanel - reference.
      xPosition - initial position.
  • Method Details

    • uniqueMovement

      protected void uniqueMovement()
      Bats fy up and down while moving forward.
      Overrides:
      uniqueMovement in class Entity