mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-07-12 11:09:38 +00:00
bugfix/fix-debug-text-font-size
This commit is contained in:
@@ -3,6 +3,7 @@ import main from "../main";
|
||||
export const mainColor = '#ff3e00';
|
||||
|
||||
export const drawObjects = (ctx: CanvasRenderingContext2D, objects, [width, height], debug = false) => {
|
||||
ctx.font = ctx.font.replace(/\d+px/, "12px");
|
||||
objects.forEach(obj => {
|
||||
ctx.beginPath();
|
||||
ctx.strokeStyle = mainColor;
|
||||
|
||||
Reference in New Issue
Block a user