In love.load, I typed in love.graphics.setDefaultFilter("nearest", "nearest") to make the images even when scaled up, look good and not blurry. But setDefaultFilter("nearest", "nearest") isn't working: the image is still blurry
function love.load()
playerImg = love.graphics.newImage("Images/GameJamPlayer.png") --player image which is 32x32
love.graphics.setDefaultFilter("nearest", "nearest") -- the problem code that doesn't seem to be working
end
function love.draw()
love.graphics.draw(playerImg, 0, 0, 0, 5, 5) --drawing the player image at (0, 0) with the size boosted up 5 times
end
ivan wrote: ↑Mon Jan 28, 2019 3:18 pm
I think you need to set this per image as it will not work retroactively:
playerImg:setFilter("nearest", "nearest")
setting the individual image's filter worked!
Thank you!