Your First Flutter Flame Game

Mar 6 2024 · Dart 3, Flutter 3.10.1, Android Studio 2021.3.1 or higher, Visual Studo Code 1.7.4 or higher

Part 2: Effects & User Input

07. Learn About Effects

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 06. Challenge: Add Saucer Component Next episode: 08. Move Meteorites Around

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 07. Learn About Effects

Check out Flame’s documentation about effects.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

A key part of every game is the ambiance when in-game.

Meteorite

To start, open meteorite.dart.

bool get isBig => meteoriteSize == MeteoriteSize.big;
@override
FutureOr<void> onLoad() async {
}
add(RotateEffect.by(angle, controller));
isBig ? pi : 2 * pi,
EffectController(
  duration: isBig ? 20 : 10,
  infinite: true,
),