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

@ -37,7 +37,8 @@ class DebugExample extends FlameGame {
}
}
class LogoComponent extends SpriteComponent with HasGameRef<DebugExample> {
class LogoComponent extends SpriteComponent
with HasGameReference<DebugExample> {
static const int speed = 150;
int xDirection = 1;
@ -52,14 +53,14 @@ class LogoComponent extends SpriteComponent with HasGameRef<DebugExample> {
final rect = toRect();
if ((x <= 0 && xDirection == -1) ||
(rect.right >= gameRef.size.x && xDirection == 1)) {
(rect.right >= game.size.x && xDirection == 1)) {
xDirection = xDirection * -1;
}
y += yDirection * speed * dt;
if ((y <= 0 && yDirection == -1) ||
(rect.bottom >= gameRef.size.y && yDirection == 1)) {
(rect.bottom >= game.size.y && yDirection == 1)) {
yDirection = yDirection * -1;
}
}