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:
Pasha Stetsenko
2021-11-02 01:59:35 -07:00
committed by GitHub
parent 8446ca72bf
commit d9984c7bda
8 changed files with 300 additions and 0 deletions

View File

@ -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,
);
}