mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Move chars closer to close gaps
This commit is contained in:
parent
3e3693bc2e
commit
b12eac4bed
1 changed files with 4 additions and 3 deletions
|
@ -20,8 +20,8 @@ internal class Term : IPlugin
|
|||
public Color Background;
|
||||
}
|
||||
|
||||
public const int CharWidth = 7;
|
||||
public const int CharHeight = 13;
|
||||
public const int CharWidth = 6;
|
||||
public const int CharHeight = 12;
|
||||
|
||||
public const int CursorDelay = 30;
|
||||
|
||||
|
@ -29,7 +29,7 @@ internal class Term : IPlugin
|
|||
public static int Height { get; private set; } = 23;
|
||||
public static int RealWidth => CharWidth * Width;
|
||||
public static int RealHeight => CharHeight * Height;
|
||||
public static Vector2 CharOffset => new(1, 0);
|
||||
public static Vector2 CharOffset => new(0, -1);
|
||||
public static Vector2 CursorPosition => _cursorPosition + Vector2.One;
|
||||
private static Vector2 _cursorPosition { get; set; }
|
||||
public static Color ForegroundColor { get; set; }
|
||||
|
@ -189,6 +189,7 @@ internal class Term : IPlugin
|
|||
var realpos = ToRealPos(pos);
|
||||
var charpos = realpos + CharOffset;
|
||||
_game.Drawing.DrawRectangle(realpos, new(CharWidth, CharHeight), bg, Math.Min(CharWidth, CharHeight));
|
||||
//_game.Drawing.DrawRectangle(realpos, new(CharWidth, CharHeight), Color.Red, 1);
|
||||
_game.Drawing.DrawString(charpos, ch.ToString(), fg);
|
||||
|
||||
if (!save)
|
||||
|
|
Loading…
Reference in a new issue