Class PlayerAnimationController

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.player.PlayerAnimationController

public class PlayerAnimationController extends Component
Controls player animations by listening to relevant events and updating the AnimationRenderComponent accordingly.

This component reacts to movement, jumping, sprinting, crouching, dashing, and falling events to play the appropriate animations based on the player's state and direction.

  • Constructor Details

    • PlayerAnimationController

      public PlayerAnimationController()
  • Method Details

    • create

      public void create()
      Creates a new animation controller, retrieves the animator component, and registers event listeners for relevant player actions.
      Overrides:
      create in class Component