Namespace Player
Classes
AnimationPlayer
This class manages the player's animations, including setting animation states, handling directional changes, and triggering specific animations like punching.
Block
This class handles the player's ability to block and parry incoming attacks. Blocking reduces damage, while parrying reflects attacks if timed correctly.
Damageable
This class handles the player's ability to take damage, die, and respawn. It also manages interactions like blocking, parrying, and dropping items when hit.
PlayerCameraMovement
This class controls the movement of the camera to follow players during the game. It also handles special behavior for the camera in the win scene.
PlayerManager
This class manages player-related functionality, such as joining, leaving, and assigning colors. It also handles starting the game once players have joined.
PlayerMovement
This class handles the player's movement, including walking, jumping, and animations. It also manages input, physics, and interactions with the ground.
Punch
This class handles the punching mechanic for the player, including triggering animations, enabling and disabling the hurtbox, and managing player speed during a punch.
TeleportPlatform
This class handles teleportation for platforms and players when they collide with the teleport trigger. It can teleport either the platform itself or a player to a specified location.
UseItem
This class allows a player to pick up, hold, and drop items during the game. It is primarily used for managing interactions with the "hat" in "keep-away" mode.
Enums
AnimationPlayer.AnimationState
Represents the different animation states the player can be in.