mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
refactor: Remove Loadable, optional onLoads (#1333)
This commit is contained in:
@ -10,7 +10,6 @@ class SpritesheetExample extends FlameGame {
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
await super.onLoad();
|
||||
final spriteSheet = SpriteSheet(
|
||||
image: await images.load('spritesheet.png'),
|
||||
srcSize: Vector2(16.0, 18.0),
|
||||
|
||||
Reference in New Issue
Block a user