Code: Select all
function love.load()
Tiles = {}
for i = 1, XWindow/10 do
for q = 1, YWindow/10 do
Tiles[i][q][1] = math.random(1, 255-i)
Tiles[i][q][2] = math.random(1, 255-q)
Tiles[i][q][3] = math.random(1, 255-q/i)
end
end
end
Code: Select all
function love.load()
Tiles = {}
for i = 1, XWindow/10 do
for q = 1, YWindow/10 do
Tiles[i][q][1] = math.random(1, 255-i)
Tiles[i][q][2] = math.random(1, 255-q)
Tiles[i][q][3] = math.random(1, 255-q/i)
end
end
end
Users browsing this forum: No registered users and 3 guests