Code: Select all
function love.draw()
love.graphics.rectangle("fill", 200, 200, 200, 200)
love.graphics.setColor(100,100,100)
love.graphics.print("Test", 500, 500)
end
2. In the code in question one, I put this line outside the love.draw() function.
Code: Select all
fontsize = love.graphics.newFont(24)
3. Must I define the position of a button and check if the cursor is in that area to register if it's clicked? Or is there a better way? If not, what's the best way to manage the method I suggested.
4. What are the most important things to learn in the love API to make a game, so I can learn them first.
5. I was told not to use love.timer.sleep, how else should I stop the program? Should I use love.timer.sleep? Should I have to even stop the program?
Thanks in advance!