diff options
author | ubq323 <ubq323@ubq323.website> | 2025-06-10 11:34:03 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-06-10 11:34:03 +0100 |
commit | 21e6694c2244a8e7c102bd841e41a3e627e0e885 (patch) | |
tree | c7f93eda06c11c46bc99a275e4c00fe1f89c4cda /print_good.lua | |
parent | de18a43477c19691a198d987b120ed82270d0ed9 (diff) |
Diffstat (limited to 'print_good.lua')
-rw-r--r-- | print_good.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/print_good.lua b/print_good.lua index b5d18b9..60948bb 100644 --- a/print_good.lua +++ b/print_good.lua @@ -2,6 +2,7 @@ local font = love.graphics.getFont() local text = love.graphics.newText(font) local function print_good(str,x,y) + text:setFont(love.graphics.getFont()) text:set(str) local w,h = text:getDimensions() local W,H = love.graphics.getDimensions() |