Class PlayerAnimationController

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

public class PlayerAnimationController extends Component
  • Constructor Details

    • PlayerAnimationController

      public PlayerAnimationController()
  • Method Details

    • create

      public void create()
      Creates the player animation controller Adds listeners for walk cycle animations Adds listeners for ingredient animations
      Overrides:
      create in class Component
    • updateAnimation

      public void updateAnimation(String atlasPath)
      Updates player animation to use given atlas, removes and reloads walk cycle
      Parameters:
      atlasPath - new atlas to update player animation with