Skip to content

Commit

Permalink
Rename previously unknown AllFonts part
Browse files Browse the repository at this point in the history
  • Loading branch information
tvasenin committed Dec 17, 2017
1 parent 1bca86f commit ae67087
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pre2/AssetConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ public static class AssetConverter
private static readonly byte[] FontCreditsCharCodes = Encoding.ASCII.GetBytes("0123456789!?.$_ABCDEFGHIJKLMNOPQRSTUVWXYZ");
private static readonly SpriteInfo FontCreditsInfo = new SpriteInfo { W = 8, H = 12 };
private static readonly SpriteInfo PanelSpritesInfo = new SpriteInfo { W = 16, H = 12 };
private static readonly SpriteInfo FontUnknownInfo = new SpriteInfo { W = 16, H = 11 };
private static readonly SpriteInfo FontFinScoreInfo = new SpriteInfo { W = 16, H = 11 };
private static readonly byte[][] FontCreditsDevs;
private static readonly byte[][] PanelSprites;
private static readonly byte[][] FontUnknown;
private static readonly byte[][] FontFinScore;

private static readonly SpriteInfo PanelImageInfo = new SpriteInfo { W = 320, H = 23 };
private static readonly byte[] PanelImage;
Expand All @@ -68,7 +68,7 @@ static AssetConverter()
input.Read(panelImageRaw, 0, panelImageRaw.Length);
PanelImage = ConvertIndex4ToIndex8Bytes(ConvertPlanarIndex4Bytes(panelImageRaw));
PanelSprites = ReadTiles(input, 17, PanelSpritesInfo);
FontUnknown = ReadTiles(input, 10, FontUnknownInfo);
FontFinScore = ReadTiles(input, 10, FontFinScoreInfo);
input.Read(UnknownAllFontsData, 0, UnknownAllFontsData.Length);
}

Expand Down Expand Up @@ -483,7 +483,7 @@ private static void ConvertAllFonts()

WritePng8(Path.Combine(CacheDir, "panel.png"), PanelImage, palDefault, PanelImageInfo);
GenerateTileSet(PanelSprites, palDefault, PanelSprites.Length, PanelSpritesInfo, CacheDir, "PanelSprites");
GenerateTileSet(FontUnknown, palDefault, FontUnknown.Length, FontUnknownInfo, CacheDir, "FontUnknown");
GenerateTileSet(FontFinScore, palDefault, FontFinScore.Length, FontFinScoreInfo, CacheDir, "FontFinScore");

string rawDir = CacheDir + "/RAW";
Directory.CreateDirectory(rawDir);
Expand Down

0 comments on commit ae67087

Please sign in to comment.