Skip to main content

fledge_tween 0.5.0 copy "fledge_tween: ^0.5.0" to clipboard
fledge_tween: ^0.5.0 copied to clipboard

Easing curves and tweens for the Fledge ECS game framework. Interpolate values over time with configurable curves and loop modes.

fledge_tween #

Easing curves and value tweens for Fledge games.

pub package

Installation #

dependencies:
  fledge_tween: ^0.2.1

Quick Start #

import 'package:fledge_ecs/fledge_ecs.dart';
import 'package:fledge_tween/fledge_tween.dart';

Future<void> main() async {
  final position = Position(0, 0);

  final app = App()
    ..addPlugin(WallTimePlugin())
    ..addPlugin(const TweenPlugin());

  app.world.spawn().insert(Tweener(
    tween: Tween<double>(
      from: 0,
      to: 100,
      duration: const Duration(seconds: 1),
      curve: Curves.easeOutCubic,
      lerp: lerpDouble,
    ),
    onSample: (value) => position.x = value as double,
  ));

  await app.run();
}

Documentation #

See the Fledge documentation site for guides, API reference, and advanced usage.

License #

Apache 2.0 - See LICENSE for details.

0
likes
160
points
580
downloads

Documentation

API reference

Publisher

verified publisherfledge-framework.dev

Weekly Downloads

Easing curves and tweens for the Fledge ECS game framework. Interpolate values over time with configurable curves and loop modes.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#ecs #game-engine #tween #animation #flutter-games

License

Apache-2.0 (license)

Dependencies

fledge_ecs, flutter, meta

More

Packages that depend on fledge_tween