mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
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:
@ -107,7 +107,7 @@ class PlayerCustomPainter extends CustomPainter {
|
||||
}
|
||||
|
||||
class Player extends CustomPainterComponent
|
||||
with HasGameRef<CustomPainterExample> {
|
||||
with HasGameReference<CustomPainterExample> {
|
||||
static const speed = 150;
|
||||
|
||||
int direction = 1;
|
||||
@ -126,7 +126,7 @@ class Player extends CustomPainterComponent
|
||||
|
||||
x += speed * direction * dt;
|
||||
|
||||
if ((x + width >= gameRef.size.x && direction > 0) ||
|
||||
if ((x + width >= game.size.x && direction > 0) ||
|
||||
(x <= 0 && direction < 0)) {
|
||||
direction *= -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user