Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #149

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Extra/features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ shallow_water
shallow_water
≈LIGHTCYAN
shoals_shallow_water9
~RED
shallow_water
~BLUE
shallow_water
~LIGHTBLUE
shallow_water
~CYAN
shallow_water
~GREEN
shallow_water
~LIGHTGREEN
shallow_water
~LIGHTCYAN
shoals_shallow_water9
.RED
floor
.LIGHTGREEN
Expand Down
7 changes: 5 additions & 2 deletions FrameGenerator/MainGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private SKBitmap DrawMap(Model model)
x += 20;
}
var overrides = GetOverridesForFrame(model.MonsterData, model.Location);
DrawTiles(g, model, 0, 32, model.LineLength, overrides);//draw the rest of the map
DrawTiles(g, model, 0, 32, model.LineLength, overrides, 0.75f);//draw the rest of the map
}

return bmp;
Expand All @@ -201,7 +201,7 @@ private SKBitmap DrawTextBox(Model model, SKBitmap lastframe)
{
var font = new SKPaint {
Typeface = SKTypeface.FromFamilyName("Courier New"),
TextSize = 12,
TextSize = 16,
IsAntialias = true,
};
var darkPen = new SKPaint() {
Expand Down Expand Up @@ -655,6 +655,9 @@ private bool DrawCurrentTile(SKCanvas g, Model model, Dictionary<string, string>
TextSize = 24 * resize,

};
// centre character in bounding box
x += (32 - font.FontMetrics.XMax) / 2;
y -= (32 + font.FontMetrics.Top) / 2;
g.WriteCharacter(tile, font, x, y, tileHighlight);//unhandled tile, write it as a character instead

return false;
Expand Down