mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-17 21:29:38 +08:00
Improve 'move effect' example (#1030)
* Improve 'move effect' example * Update examples/lib/commons/circle_component.dart * Changelog entry Co-authored-by: Erick <erickzanardoo@gmail.com>
This commit is contained in:
@@ -7,10 +7,11 @@ import 'package:flame/palette.dart';
|
||||
class SquareComponent extends PositionComponent with EffectsHelper {
|
||||
Paint paint = BasicPalette.white.paint();
|
||||
|
||||
SquareComponent({int priority = 0})
|
||||
SquareComponent({int priority = 0, double size = 100.0})
|
||||
: super(
|
||||
size: Vector2.all(100.0),
|
||||
size: Vector2.all(size),
|
||||
priority: priority,
|
||||
anchor: Anchor.center,
|
||||
);
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user