moveUpRight method

  1. @override
bool moveUpRight(
  1. double speedX,
  2. double speedY
)
override

Move player to Up and Right

Implementation

@override
bool moveUpRight(double speedX, double speedY) {
  if (animation?.runUpRight != null) {
    animation?.play(SimpleAnimationEnum.runUpRight);
  } else {
    animation?.play(SimpleAnimationEnum.runRight);
  }
  return super.moveUpRight(speedX, speedY);
}