Here is some of my code:
Code: Select all
if GameMode == "playing" then
for i = 1, 40 do
for o = 1, 15 do
Color = CellRender(TheGrid[i][o])
if Color == 0 then
love.graphics.setColor( 150, 150, 150, 255 )
love.graphics.rectangle("fill", (i-1)*40, (o-1)*40, 40, 40 )
elseif Color == 1 then
love.graphics.reset( )
love.graphics.draw(GoalImage, (i-1)*40, (o-1)*40)
else
love.graphics.setColor( 0, 0, 200, 255 )
love.graphics.rectangle("fill", (i-1)*40, (o-1)*40, 40, 40 )
end
love.graphics.rectangle("fill", (i-1)*40, (o-1)*40, 40, 40 )
end
end
end