Code: Select all
sample_map = {
{1,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
}
for example, I was thinking:
Code: Select all
function love.draw()
col = GetLevelData_Column(1) --Column 1
row = GetLevelData_Row(1) --Row 1
end
function GetLevelData_Column(column)
...
return Get Column 'column'
...
end
function GetLevelData_Row(row)
...
return Get row 'row'
end
Thanks.