MichaelD Posted June 12, 2015 Report Share Posted June 12, 2015 Hello, Like the title says I have a text on a game that appears quite blurry or like it has smoothness applies to it. I was wondering if there is a way to make it more crisp to improve legibility. I'm attaching a screen of how it looks, I think it is quite obvious. Quote Link to comment Share on other sites More sharing options...
XekeDeath Posted June 12, 2015 Report Share Posted June 12, 2015 Have you tried Math.floor'ing the x and y position of the text..?Usually blurry text is a result of it not being pixel aligned... MichaelD 1 Quote Link to comment Share on other sites More sharing options...
MichaelD Posted June 13, 2015 Author Report Share Posted June 13, 2015 Thanks I'll try that. Yes that solved it, however when the game is scaled up due to browser size the text still looks pixelated. I understand this is another issue altogether, I would appreciate some input though. Quote Link to comment Share on other sites More sharing options...
jeancode Posted June 13, 2015 Report Share Posted June 13, 2015 Are you using a bitmap font ? The renderering is worse than a regular font object, especially if you scale it. That would explain the blurry effect imo. Quote Link to comment Share on other sites More sharing options...
MichaelD Posted June 14, 2015 Author Report Share Posted June 14, 2015 No regular font for the exact reason you said. Quote Link to comment Share on other sites More sharing options...
drhayes Posted June 15, 2015 Report Share Posted June 15, 2015 I've had tons of issues when my game gets scaled up. I'm literally drawing Phaser to an offscreen canvas then drawImage'ing to the onscreen canvas to resize. Then again, I'm making a pixel art game where the hero is like 8 pixels high... but maybe it'll help you? When the canvas resizes my graphics by itself the dread specter of bilinear filtering rears its head. I'm considering adding a build step to enlarge all my assets and then let Phaser resize it down (which prevents blurring) but then all my physics values are messed up. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.