Player constructor
Implementation
Player({
required Vector2 position,
required Vector2 size,
double life = 100,
double? speed,
}) {
this.speed = speed ?? this.speed;
receivesAttackFrom = AcceptableAttackOriginEnum.ENEMY;
initialLife(life);
this.position = position;
this.size = size;
}