PlayerExtensions extension
- on
Methods
-
seeEnemy(
{required dynamic observed(List< Enemy> ), VoidCallback? notObserved, double radiusVision = 32, double? visionAngle, double? angle}) → PolygonShape? -
Available on Player, provided by the PlayerExtensions extension
This method we notify when detect the enemy when enter inradiusVisionconfiguration Method that bo used in update method.visionAnglein radiansanglein radians. is automatically picked up using the component's direction. -
simpleAttackMelee(
{required double damage, required Vector2 size, Future< SpriteAnimation> ? animationRight, dynamic id, Direction? direction, bool withPush = true, double? sizePush, Vector2? centerOffset, double? marginFromCenter, bool diagonalEnabled = true}) → void -
Available on Player, provided by the PlayerExtensions extension
-
simpleAttackRange(
{required Future< SpriteAnimation> animationRight, required Vector2 size, Future<SpriteAnimation> ? animationDestroy, Vector2? destroySize, dynamic id, double speed = 150, double damage = 1, Direction? direction, bool withCollision = true, bool diagonalEnabled = true, VoidCallback? onDestroy, ShapeHitbox? collision, LightingConfig? lightingConfig}) → void -
Available on Player, provided by the PlayerExtensions extension