chore: Remove deprecations for v1.9.0 (#2749)

Removes everything that was marked as deprecated and that should be
removed for v1.9.0.
This commit is contained in:
Lukas Klingsbo
2023-09-19 16:47:41 +02:00
committed by GitHub
parent 7c2f400076
commit 9c1e1c3098
101 changed files with 238 additions and 287 deletions

View File

@ -23,7 +23,7 @@ class CirclesExample extends FlameGame with HasCollisionDetection, TapDetector {
}
class MyCollidable extends PositionComponent
with HasGameRef<CirclesExample>, CollisionCallbacks {
with HasGameReference<CirclesExample>, CollisionCallbacks {
late Vector2 velocity;
final _collisionColor = Colors.amber;
final _defaultColor = Colors.cyan;
@ -45,7 +45,7 @@ class MyCollidable extends PositionComponent
..paint = defaultPaint
..renderShape = true;
add(hitbox);
final center = gameRef.size / 2;
final center = game.size / 2;
velocity = (center - position)..scaleTo(150);
}