Class HorizontalSnakeAnimation

All Implemented Interfaces:
Animation

public class HorizontalSnakeAnimation extends AbstractSoundAnimation
An animation that moves like a snake in horizontal direction, starting from (0,0) then moving all the way right, one down, all the way left and repeat.
  • Constructor Details

    • HorizontalSnakeAnimation

      public HorizontalSnakeAnimation(int tickDelay, boolean sound)
      Parameters:
      tickDelay - The delay between each slot being shown.
      sound - Whether a sound should be played when the slot is shown.
  • Method Details