【发布时间】:2015-03-08 15:17:42
【问题描述】:
我正在使用此代码从该表中随机绘制图片
FishImages = {image1 = love.graphics.newImage("bg/fish1.png"),
image2 = love.graphics.newImage("bg/fish2.png"),
image3 = love.graphics.newImage("bg/fish3.png"),
image4 = love.graphics.newImage("bg/fish4.png"),}
用这个函数love.graphics.draw({FishImages.image1#--I guess the modification is here },pos.x,pos.y)
那么如何从 Lua 中的表中获取随机键?
【问题讨论】: