moveUpLeft method

void moveUpLeft(
  1. double speedX,
  2. double speedY, {
  3. VoidCallback? onCollision,
})

Move player to Up and Left

Implementation

void moveUpLeft(double speedX, double speedY, {VoidCallback? onCollision}) {
  moveLeft(speedX, onCollision: onCollision);
  moveUp(speedY, onCollision: onCollision);
  lastDirection = Direction.upLeft;
}