mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
RemoveEffect (#1063)
* Added FlameAnimationController class * Added MainAnimationController class * Update doc comments * formatting * rename MainAnimationController * Added tests for StandardAnimationController * Added more tests * comment * Added changelog note * Export StandardAnimationController * formatting * Use a default for 'curve' parameter * rename onsetDelay -> startDelay * Added Transofm2DEffect * Added EffectComponent * Added .transform getter * formatting * Rename EffectComponent -> Effect * Add documentation for the Effect class * minor * Added a test for Effect class * Adding tests for removeOnFinish * Adding tests for onStart and onFinish * Also check the effect after reset * Fix-up merge * formatting * added doc-comments * changelog note * Added test for transform2DEffect * Adjusted comments * Make PositionComponent._transform public * change changelog * Added SimpleEffectController * Added DestroyEffect * Changelog note * Rename DestroyEffect -> RemoveEffect * Added example for RemoveEffect * flutter format * Move description of the RemoveEffectExample game * move the description again * minor
This commit is contained in:
@ -7,6 +7,7 @@ import 'combined_effect.dart';
|
||||
import 'infinite_effect.dart';
|
||||
import 'move_effect.dart';
|
||||
import 'opacity_effect.dart';
|
||||
import 'remove_effect_example.dart';
|
||||
import 'rotate_effect.dart';
|
||||
import 'scale_effect.dart';
|
||||
import 'sequence_effect.dart';
|
||||
@ -67,5 +68,11 @@ void addEffectsStories(Dashbook dashbook) {
|
||||
'Color Effect',
|
||||
(_) => GameWidget(game: ColorEffectGame()),
|
||||
codeLink: baseLink('effects/color_effect.dart'),
|
||||
)
|
||||
..add(
|
||||
'Remove Effect',
|
||||
(_) => GameWidget(game: RemoveEffectExample()),
|
||||
codeLink: baseLink('effects/remove_effect_example.dart'),
|
||||
info: RemoveEffectExample.description,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user