It seems that drawing a quad conceptually works like this:
- Scale the image to the reference width and height.
- Crop the image using the viewpoint.
- Why doesn't scaling work like love.graphics.draw, with sw and sh being what the width and height are multiplied by, rather than the new width and height values?
- Why only scaling, why not rotation and shearing too?
- Why is it required? Couldn't a quad use a viewport on any image without having a reference width and height?
A couple of things I found slightly strange about ParticleSystems were that they have a position, and that they begin started, instead of stopped. Is there a reason why they have a position instead of just drawing it at a position with love.graphics.draw? And is there a reason why they're started by default? (I guess it prevents people from thinking "hey, where's my particle system?!?")
If there's an easy explanation, why can't LÖVE functions be easily overwritten?
This doesn't work:
Code: Select all
_print = love.graphics.print
function love.graphics.print(s, x, y)
print('This gets output once')
_print(s:upper(), x, y)
end
function love.draw()
love.graphics.print('Test', 10, 10)
end
Code: Select all
function love.draw()
_print = love.graphics.print
function love.graphics.print(s, x, y)
_print(s:upper(), x, y)
end
love.graphics.print('Test', 10, 10)
end