add monogram font
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ export class Sprite {
|
||||
}
|
||||
|
||||
function drawDebug(context, x, y, w, h) {
|
||||
context.font = '14px serif';
|
||||
context.font = '16px Monogram';
|
||||
context.fillStyle = '#ffffff';
|
||||
context.fillText(`${x}x${y}`, x + 1, y - 2);
|
||||
context.fillStyle = '#000000';
|
||||
|
||||
@@ -37,6 +37,7 @@ export class Scene {
|
||||
this.#layers = Array();
|
||||
}
|
||||
|
||||
// TODO: remove it
|
||||
setScreenSize(w, h) {
|
||||
this.#canvas.width = w;
|
||||
this.#canvas.height = h;
|
||||
|
||||
Reference in New Issue
Block a user