Rocket constructor
Rocket({})
A PositionComponent
that represents a rocket.
Implementation
Rocket({
required this.colors,
required Color? rocketColor,
required this.minExplosionDuration,
required this.maxExplosionDuration,
required this.minParticleCount,
required this.maxParticleCount,
required this.fadeOutDuration,
Random? random,
}) : rocketColor = rocketColor ?? Colors.pinkAccent,
random = random ?? Random() {
size = Vector2(4, 20);
anchor = Anchor.center;
}