Corona SDK: fill up a bar from left to right
snippet in lua

Corona SDK: fill up a bar from left to right

user3077

powerBar = display.newRect(210, 6, 24, 9)
powerBar:setReferencePoint(display.BottomLeftReferencePoint)
powerBar.x, powerBar.y = 210, 6