更新 player.lua
This commit is contained in:
@@ -31,7 +31,7 @@ local function drawFrame(frame, term)
|
||||
|
||||
-- 计算图像的尺寸
|
||||
-- 假设所有行具有相同的长度,取第一行的长度作为图像宽度
|
||||
local imageWidth, imageHeight = #frame[1][1], #frame
|
||||
local imageWidth, imageHeight = #frame[1][1] - 1, #frame
|
||||
|
||||
-- 计算居中的x和y偏移量
|
||||
local xOffset = math.max(math.floor((termWidth - imageWidth) / 2), 0)
|
||||
|
||||
Reference in New Issue
Block a user