Code: Select all
function love.load()
love.graphics.setMode(860,640, false, true, 0)
love.graphics.setCaption("Black Screen")
image = love.graphics.newImage("BlockTemplate(32x32).png")
block={}
end
function love.update()
for i=0,10 do
block.i={}
block.i.y= 32*i
block.i.x= 32*i
end
end
function love.draw()
for i=0,10 do
love.graphics.draw(image,block.i.x,block.i.y,0, 0, 0, 0, 0)
end
end
love.load()
love.update()
love.draw()
Note:I have had around a years of pain with C and mostly C++