PlatformPlayer constructor
PlatformPlayer({})
Implementation
PlatformPlayer({
required super.position,
required super.size,
PlatformAnimations? animation,
Direction initDirection = Direction.right,
double? speed,
double life = 100,
int countJumps = 1,
}) : super(
initDirection: initDirection,
speed: speed,
life: life,
animation: animation?.toSimpleDirectionAnimation(),
) {
setupJumper(maxJump: countJumps);
}