mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-29 16:05:47 +08:00
chore: Remove 1.8.0 deprecations (#2538)
Removes all the deprecated methods before 1.8.0 release.
This commit is contained in:
@ -16,6 +16,8 @@ class ParticlesInteractiveExample extends FlameGame with PanDetector {
|
||||
final Tween<double> noise = Tween(begin: -1, end: 1);
|
||||
final ColorTween colorTween;
|
||||
final double zoom;
|
||||
final world = World();
|
||||
late final CameraComponent cameraComponent;
|
||||
|
||||
ParticlesInteractiveExample({
|
||||
required Color from,
|
||||
@ -25,9 +27,13 @@ class ParticlesInteractiveExample extends FlameGame with PanDetector {
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
camera.followVector2(Vector2.zero());
|
||||
|
||||
camera.zoom = zoom;
|
||||
cameraComponent = CameraComponent.withFixedResolution(
|
||||
world: world,
|
||||
width: 400,
|
||||
height: 600,
|
||||
);
|
||||
addAll([cameraComponent, world]);
|
||||
cameraComponent.viewfinder.zoom = zoom;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user