mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-29 16:05:47 +08:00
fix: Fix SpriteBatch to comply with new drawAtlas requirement (#3338)
Fix SpriteBatch to comply with new drawAtlas requirement Fixes: #3331
This commit is contained in:
@ -20,6 +20,11 @@ class SpriteBatchLoadExample extends FlameGame {
|
||||
|
||||
class MySpriteBatchComponent extends SpriteBatchComponent
|
||||
with HasGameReference<SpriteBatchLoadExample> {
|
||||
MySpriteBatchComponent()
|
||||
: super(
|
||||
blendMode: BlendMode.srcOver,
|
||||
);
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
final spriteBatch = await game.loadSpriteBatch('boom.png');
|
||||
|
||||
Reference in New Issue
Block a user