function love.load()
for i=1,#buttons do
button_images[i][1] = love.graphics.newImage(buttons[i][5])
button_images[i][2] = love.graphics.newImage(buttons[i][6])
end
love.graphics.setBackgroundColor(0, 0, 0)
love.mouse.setVisible(true)
end
Even with "button_images = {}" it doesn't function. I think it's a nesting problem.
function love.load()
button_images = {}
for i=1,#buttons do
button_images[i] = {}
button_images[i][1] = love.graphics.newImage(buttons[i][5])
button_images[i][2] = love.graphics.newImage(buttons[i][6])
end
-- snip
end