-
Notifications
You must be signed in to change notification settings - Fork 0
[engine] outlined text
solflo edited this page Aug 27, 2026
·
2 revisions
(written @ v1.2.7)
add to function draw(), before the text gets displayed (replace outlineColor with one of your choosing, obv). alternatively, use textColor for the outline and white for the text itself.
love.graphics.setColor(outlineColor)
love.graphics.printf(script[currentLine], textCoords[1]+1, textCoords[2]+0, textWidth)
love.graphics.printf(script[currentLine], textCoords[1]+1, textCoords[2]+1, textWidth)
love.graphics.printf(script[currentLine], textCoords[1]+1, textCoords[2]-1, textWidth)
love.graphics.printf(script[currentLine], textCoords[1]-1, textCoords[2]+0, textWidth)
love.graphics.printf(script[currentLine], textCoords[1]-1, textCoords[2]+1, textWidth)
love.graphics.printf(script[currentLine], textCoords[1]-1, textCoords[2]-1, textWidth)
love.graphics.setColor(textColor)