このテーブルをアンパックして画像を呼び出そうとすると、プログラムは「アンパックする引数が正しくありません (テーブルはユーザーデータを取得したと予想されます)」というエラーを返します。
textures = {love.graphics.newImage("image.png"),
love.graphics.newImage("image.png"),
love.graphics.newImage("image.png"),
love.graphics.newImage("image.png"),
}
私が使っているテーブルです
drawScreenLineTexture[x] = {unpack(textures[map[mapX][mapY]])}
if side == 1 then
drawScreenLineTexture[x][1] = drawScreenLineTexture[x][1] / 2
drawScreenLineTexture[x][2] = drawScreenLineTexture[x][2] / 2
drawScreenLineTexture[x][3] = drawScreenLineTexture[x][3] / 2
end
これは、テーブルを解凍しようとする場所です