|
|
@ -88,12 +88,9 @@ class _SignpostSpriteComponent extends SpriteGroupComponent<SignpostSpriteState>
|
|
|
|
final sprites = <SignpostSpriteState, Sprite>{};
|
|
|
|
final sprites = <SignpostSpriteState, Sprite>{};
|
|
|
|
this.sprites = sprites;
|
|
|
|
this.sprites = sprites;
|
|
|
|
for (final spriteState in SignpostSpriteState.values) {
|
|
|
|
for (final spriteState in SignpostSpriteState.values) {
|
|
|
|
// TODO(allisonryan0002): Support caching
|
|
|
|
sprites[spriteState] = Sprite(
|
|
|
|
// https://github.com/VGVentures/pinball/pull/204
|
|
|
|
gameRef.images.fromCache(spriteState.path),
|
|
|
|
// sprites[spriteState] = Sprite(
|
|
|
|
);
|
|
|
|
// gameRef.images.fromCache(spriteState.path),
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
sprites[spriteState] = await gameRef.loadSprite(spriteState.path);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
current = SignpostSpriteState.inactive;
|
|
|
|
current = SignpostSpriteState.inactive;
|
|
|
|