Shall be centered now?

This commit is contained in:
KikooDX 2020-04-25 11:10:06 +02:00
parent 232d7be94b
commit dc863ec613
2 changed files with 15 additions and 14 deletions

View File

@ -50,8 +50,9 @@ for i = 1, 12, 1 do
end
end
file:write("}\ndraw(", 192 - image_infos.width, ",", 96 - image_infos.height)
file:write(",data,pallet,", image_infos.width, ")")
file:write("}\ndraw(", math.floor(192 - image_infos.width / 2), ",")
file:write(math.floor(96 - image_infos.height / 2), ",data,pallet,")
file:write(image_infos.width, ")")
end
file:close()

File diff suppressed because one or more lines are too long