increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
906 stars 160 forks source link

title-screen isn't pixel-perfect-integer upscaled #568

Open increpare opened 3 years ago

increpare commented 3 years ago

image

increpare commented 3 years ago

window.devicePixelRatio on my pc is 1.5

https://www.html5rocks.com/en/tutorials/canvas/hidpi/ doesn't seem to fix anything - if anything it breaks it more - 'pixelate' doesn't seem to have any effect.

increpare commented 3 years ago

image

increpare commented 3 years ago

https://news.ycombinator.com/item?id=26655521 for future reference - not a full solution, but a partial solution

increpare commented 2 years ago

note to self: check out ResizeObservers - they seem to be widely supported now.

increpare commented 2 years ago

March 2022 update: checked again - pixel access in the browser is still a hellscape, just as it was in Feb 2021, just as it was in 2013.

I feel like I've partially mccolough effected myself by looking at the ycomb test code...

increpare commented 2 years ago

Note to self: don't read these:

https://discourse.wicg.io/t/display-an-image-at-device-s-physical-resolution/1150/17 https://discourse.wicg.io/t/display-an-image-at-device-s-physical-resolution/1150/7

increpare commented 2 years ago

https://news.ycombinator.com/item?id=26655521 for future reference - not a full solution, but a partial solution

2022 update: none of these work on my m1 macbook 😁