Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Moving objects still blurry (with antialiasing turned off)


Berzee
 Share

Recommended Posts

Hallo friends! I am new to Phaser (coming over from Flixel) and having fun with it, but still learning to cope with the usual HTML5 "blur all the things!" problems. I've made sure to initialize Phaser.Game with antialiasing set to false, but I'm still seeing some blurry pixels in certain cases.

 

Here's my test game: link

[WASD to move around, click to throw the ball at the mouse cursor, touch the ball to pick it up again]

 

What I've noticed is that sometimes the ball still blurs like this:

ball_blur.png

 

It seems to be caused by the ball's X and Y positions not being integers, because I can fix it with

ball.x = Math.floor(ball.x)ball.y = Math.floor(ball.y)

but I don't want to do that every frame if I don't have to because I don't know if it will mess with the physics, and because it seems like I might just be missing some other no-blur rendering option.

 

I seek your wisdom!

(P.S. Let me know if the test game above has too much superfluous code, and I will build a cleaner example of my problem. :) )

Link to comment
Share on other sites

Ahh, good good. I was hoping there would be something like that, a rendering-logic-only way of making everything crisp and delicious. I will await eagerly the arrival of 1.1.4 (or see if I can dredge up the initiative to grab the dev version =).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...