Anyways, I'd like to create a pixel art game with a resolution of 400 x 240. I'm trying to use the push library to deal with this and although the library appears to function, it seems unable to render each pixel accurately and uniformly. I tested the retro example included with push, I also tried drawing a diagonal line of pixels and the results for both are awful.
The screenshot is of the push example with very little tampering around in settings. The pixels are distorted. What gives?
EDIT: Solved! I made a few edits to the push example code. It renders very cleanly now
Code: Select all
sysw, sysh = love.window.getDesktopDimensions()
love.window.setMode(sysw, sysh, {resizable = false, fullscreen = true, highdpi = true, usedpiscale = false})
push.setupScreen(64, 64, {upscale = "pixel-perfect", canvas = true, highdpi = false}) -- push resolution 64x64, pixel perfect scaling, drawn to a canvas