java.lang.Object
com.csse3200.game.entities.factories.characters.PlayerFactory

public class PlayerFactory extends Object
Factory to create a player entity.

Predefined player properties are loaded from a config stored as a json file and should have the properties stored in 'PlayerConfig'.

  • Method Details

    • createPlayer

      public static Entity createPlayer()
      Create a player entity.
      Returns:
      entity
    • createPlayerWithArrowKeys

      public static Entity createPlayerWithArrowKeys()
      Create a full-featured player entity that uses arrow keys for movement, matching the main player visuals/animations.