in lib/src/stage/square_element.dart [47:79]
void updateState() {
String textureName;
switch (squareState) {
case SquareState.hidden:
textureName = _getHiddenTexture();
break;
case SquareState.flagged:
textureName = 'balloon_tagged_frozen';
break;
case SquareState.revealed:
textureName = _numberMap[_adjacentCount];
break;
case SquareState.bomb:
textureName = 'crater_b';
break;
case SquareState.safe:
textureName = 'balloon_tagged_bomb';
break;
default:
throw StateError('$squareState not supported');
}
useHandCursor = !_game.gameEnded &&
(squareState == SquareState.hidden ||
squareState == SquareState.flagged);
_bitmap.bitmapData!
..clear()
..drawPixels(
resourceManager.getTextureAtlas('opaque').getBitmapData(textureName),
Rectangle<int>(0, 0, size, size),
Point<int>(0, 0));
}