Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
624 stars 28 forks source link

Blurry fullscreen in games with set "nearest" default filtering #33

Closed JasonNumberThirteen closed 3 years ago

JasonNumberThirteen commented 3 years ago

Hi, again! It seems that "Love2D" project on HTML5 doesn't respect filtering set to "nearest" when I press "Go Fullscreen" button. Checked Chrome, Firefox and Edge browsers. All of them give "blurry" fullscreen. Do I need to add some additional instructions or it isn't supporting "nearest" default filter intended for pixel art games?

Davidobot commented 3 years ago

You probably need to set your resize flag to true and update your internal resolution to match the resolution when going fullscreen (as in, called via love.resize). As you would need to do with standard games on desktop when going fullacreen.

JasonNumberThirteen commented 3 years ago

But when I press Esc, I have rescaled game to entire page! It doesn't return to the previous resolution. Is this another issue?

Davidobot commented 3 years ago

Correct! https://github.com/Davidobot/love.js/issues/4

I'll close this issue now as a duplicate :)