mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
Fix parallax fullscreen bug when game is resized (#887)
* Fix parallax fullscreen bug when game is resized * Test Signed-off-by: Lukas Klingsbo <me@lukas.fyi> * Fix imports * Remove accidental line * Re-add mustCallSuper on onGameResize
This commit is contained in:
@ -9,8 +9,7 @@ class ComponentParallaxGame extends BaseGame {
|
||||
}
|
||||
}
|
||||
|
||||
class MyParallaxComponent extends ParallaxComponent
|
||||
with HasGameRef<ComponentParallaxGame> {
|
||||
class MyParallaxComponent extends ParallaxComponent<ComponentParallaxGame> {
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
parallax = await gameRef.loadParallax(
|
||||
|
||||
Reference in New Issue
Block a user