kill counter fixed. 8x8 anf 8x16 fonts added. terrain slides are aminated.

This commit is contained in:
catarrh committed 2026-07-25 19:24:12 +03:00
1 parent 43ee0d9150
commit e8a79c2a81
9 files changed
+80 -20

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@ export function drawPanelBg(ctx) {
export function drawPanelTitle(ctx, text) {
const x = PANEL_X + PANEL_WIDTH / 2;
const y = PANEL_Y + 20;
ctx.font = `${PANEL_TITLE_FONT_SIZE}px text`;
ctx.font = `${PANEL_TITLE_FONT_SIZE}px ibm-vga`;
ctx.textBaseline = 'top';
ctx.textAlign = 'center';
ctx.fillStyle = 'black';
@@ -30,7 +30,7 @@ export function drawPanelTitle(ctx, text) {
}
export function drawPanelText(ctx, text, x, y, color = 'white', align = 'left') {
ctx.font = `${PANEL_FONT_SIZE}px text`;
ctx.font = `${PANEL_FONT_SIZE}px ibm-bios`;
ctx.textBaseline = 'top';
ctx.textAlign = align;
ctx.fillStyle = 'black';