Code: Select all
function love.draw()
love.graphics.rectangle("fill", 10, 10, 10, 10)
love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 20, 10)
love.graphics.print("Hello World!", 400, 300)
end
I tried to do a simple "Hello World!" program first and it gave me a black screen only. Then I added the line with the fps and in the end I added the love.graphics.rectangle function which actually gets drawn correctly.
So this code only gives me a 10x10 rectangle and nothing else... Does anyone know what's wrong?
And since you're here, would you link any tutorials that you like?