【发布时间】:2015-05-25 05:49:14
【问题描述】:
所以我正在尝试这个:
buttons = {
{imageNothing = love.graphics.newImage("buildingButtonNotSelected.png"), imageHovering = love.graphics.newImage("buildingButtonHovering.png"), imageSelected = love.graphics.newImage("buildingButton.png"),imgW = buttons[1].imageNothing:getWidth(), imgH = buttons[1].imageNothing:getHeight(), imgX = windowWidth - buttons[1].imgW, imgY = windowHeight - buttons[1].imgH, selected = false, hovering = false}
}
我目前收到此错误: 尝试索引全局“按钮”(零值)
有什么想法吗?
【问题讨论】: