turnNumber++;
}
private void fadeIn(AsciiPanel terminal) {
if (turnNumber == 0)
terminal.withEachTile(new TileTransformer(){
@Override
public void transformTile(int x, int y, AsciiCharacterData data) {
if (y== 0)
return;
if (data.character == '@' && data.foregroundColor == AsciiPanel.brightWhite)
return;
data.foregroundColor = data.foregroundColor.darker().darker();
data.backgroundColor = data.backgroundColor.darker().darker();
}
});
else if (turnNumber == 1)
terminal.withEachTile(new TileTransformer(){
@Override
public void transformTile(int x, int y, AsciiCharacterData data) {
if (y== 0)
return;
if (data.character == '@' && data.foregroundColor == AsciiPanel.brightWhite)