A few more questions
Posted: Fri Nov 02, 2012 1:28 pm
More questions about trivial details, yaaay!
It seems that drawing a quad conceptually works like this:
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:
The following works... until the stack overflows.
Does anyone know why Concept:Current doesn't seem to work on the wiki? The definition seems to be "Since::≤080", but Framebuffer for instance doesn't seem to have a Since property, but is still displayed on love.graphics. Anyone have any ideas about this? If this can't be made to work, would removing parent::s of stuff removed from the API work?
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