new Chicken()
Creates an instance of Chicken.
Initializes the chicken with default values and loads the images.
- Source:
Methods
animate()
Animates the chicken by moving it to the left and playing the walking animation.
- Source:
isDeadChicken()
Checks if the chicken is dead and plays the dead animation if it is.
Stops the chicken's movement and makes it fall down.
- Source:
moveLeftChicken()
Moves the chicken to the left.
- Source:
walkChickenImages()
Plays the walking animation for the chicken.
- Source: