diff --git a/raylib.js b/raylib.js index 59326cf..a6a0154 100644 --- a/raylib.js +++ b/raylib.js @@ -172,7 +172,7 @@ class RaylibJs { const lines = text.split('\n'); for (var i = 0; i < lines.length; i++) { - this.ctx.fillText(lines[i], posX, posY + (i * fontSize)); + this.ctx.fillText(lines[i], posX, posY + fontSize + (i * fontSize)); } }