summaryrefslogtreecommitdiff
path: root/client/util.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-13 16:36:09 +0000
committerubq323 <ubq323@ubq323.website>2023-02-13 16:36:09 +0000
commitef7848921174412d68e70190eb58b9ce1687ff12 (patch)
tree9a7841ef612847c9cd2a850278d297e37be78f54 /client/util.lua
parent7e0a520f8efd748a13c277b3c39514aee07c74d2 (diff)
run length encoding for chunk data, more reasonable player speeds, controls help menu
Diffstat (limited to 'client/util.lua')
-rw-r--r--client/util.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/util.lua b/client/util.lua
index 1d9b753..f9ec088 100644
--- a/client/util.lua
+++ b/client/util.lua
@@ -2,6 +2,7 @@ local font = love.graphics.getFont()
local text = love.graphics.newText(font)
local function print_good(lines,x,y)
+ if type(lines) ~= "table" then lines = {lines} end
for _,line in ipairs(lines) do
text:set(line)
local w,h = text:getDimensions()