feat: adjusted priorities

pull/124/head
alestiago 4 years ago
parent bdfd096e55
commit 69b764dacd

@ -85,6 +85,7 @@ class Ball<T extends Forge2DGame> extends BodyComponent<T>
burstPower: _boostTimer, burstPower: _boostTimer,
direction: -direction, direction: -direction,
position: Vector2(body.position.x, -body.position.y), position: Vector2(body.position.x, -body.position.y),
priority: priority - 1,
); );
unawaited(gameRef.add(effect)); unawaited(gameRef.add(effect));

@ -26,7 +26,11 @@ class FireEffect extends ParticleSystemComponent {
required this.burstPower, required this.burstPower,
required this.direction, required this.direction,
Vector2? position, Vector2? position,
}) : super(position: position); int? priority,
}) : super(
position: position,
priority: priority,
);
/// A [double] value that will define how "strong" the burst of particles /// A [double] value that will define how "strong" the burst of particles
/// will be. /// will be.

Loading…
Cancel
Save