V
V
Valery Albertovich Zhmyshenko2020-11-16 12:57:01
Game development
Valery Albertovich Zhmyshenko, 2020-11-16 12:57:01

How to disable anti-aliasing in love2d?

I'm making a game and I want it to be pixelated. I use love.graphics.scale(winScale,winScale) and winScale = winW/640
i.e. I want 640 pixels horizontally, but I see all textures not with smooth pixel edges, but anti-aliased ones. How to remove it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2020-11-16
@DIvan2000

Create a 640 px surface, and draw all graphics on it.
At the same time, round the coordinates so that they are all integers.
Then stretch the surface to fill the screen using the nearest filter .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question