Pop Tile

This is a test.

local function newTile( px, py )
local randomTile = math.random( #COLORS )
local tile = display.newRect( px, py, TILE_SIZE, TILE_SIZE )
tile.value = randomTile
tile:setFillColor( COLORS[randomTile].r, COLORS[randomTile].g, COLORS[randomTile].b )
return tile
end

Leave a comment