mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-29 16:05:47 +08:00
refactor: Remove Loadable, optional onLoads (#1333)
This commit is contained in:
@ -9,7 +9,6 @@ class BasicSpriteExample extends FlameGame {
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
await super.onLoad();
|
||||
final sprite = await loadSprite('flame.png');
|
||||
add(
|
||||
SpriteComponent(
|
||||
|
||||
Reference in New Issue
Block a user