I am a beginner with LÖVE (and game programming in general), and I face an issue that I still cannot solve.
The problem is really simple.
I have a little pixel-art image of size 32x32 that I'd like to draw on my game. The problem is that this size is way too small: I need to make it bigger.
To do so, I simply used the 'sx' parameter of the 'love.graphics.draw function'.
The problem is that my image becomes blurred... And I don't know to solve this. I had a look at other people's code and I didn't notice anything particular.
Sorry, this may be a very simple answer.
Here is the code (almost useless to mention):
Code: Select all
function love.load(arg)
cloud = love.graphics.newImage('cloud.png')
end
function love.update(dt)
end
function love.draw(dt)
love.graphics.draw(cloud, 200, 200, 0, 4)
end
And here is my result. You can notice a contour as well, which I do not want either (it may be a consequence of the blurring).
Thanks a lot
By the way, I'd like to add that LÖVE looks really amazing and is really motivating. Everything looks so simple