halftheopposite / TOSIOS

The Open-Source IO Shooter is an open-source multiplayer game in the browser
MIT License
369 stars 77 forks source link

Add settings.ROUND_PIXELS = true; #32

Closed LukeWood closed 3 years ago

LukeWood commented 3 years ago

Advantage of having this is that if you were to ever want to use tiles of a different size and scale them to Constants.TILE_SIZE you could do so with this and still not have black outlines surrounding where tiles meet.

Downside: as far as I can tell none when it comes to using big pixelated sprites (as Tosios does). Might make some animations less smooth? I haven't noticed anything in my testing so far.

halftheopposite commented 3 years ago

Hi @LukeWood, thanks a lot for your PR! And you're right, it shouldn't change much (and I have some recurring issues with animated sprites being blurred anyway that I have to solve).