i3Designer Posted September 17, 2015 Share Posted September 17, 2015 I 'm doing a play , I made other games in pixel art , but this time it is just the smoothed. //GAME MOBILE this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.scale.pageAlignHorizontally = true; this.scale.pageAlignVertically = true; this.game.scale.parentIsWindow = true; game.stage.smoothed = false; Link to comment Share on other sites More sharing options...
Skeptron Posted September 17, 2015 Share Posted September 17, 2015 Is there even a question in that post? XD Link to comment Share on other sites More sharing options...
i3Designer Posted September 17, 2015 Author Share Posted September 17, 2015 does not work , the images are blurry Link to comment Share on other sites More sharing options...
drhayes Posted September 17, 2015 Share Posted September 17, 2015 Try Phaser.CANVAS instead of Phaser.AUTO. Link to comment Share on other sites More sharing options...
i3Designer Posted September 17, 2015 Author Share Posted September 17, 2015 I tried Link to comment Share on other sites More sharing options...
NateTheGreatt Posted September 18, 2015 Share Posted September 18, 2015 In my Boot state's create function I placed this line:Phaser.Canvas.setImageRenderingCrisp(this.game.renderer.view);Seems to work fine when rendering with WebGL Link to comment Share on other sites More sharing options...
drhayes Posted September 18, 2015 Share Posted September 18, 2015 Here's the relevant section from my pixel art game: Phaser.Canvas.setImageRenderingCrisp(this.game.canvas); //for Canvas, modern approach Phaser.Canvas.setSmoothingEnabled(this.game.context, false); //also for Canvas, legacy approach // Pixel art. this.game.stage.smoothed = false; // No sub-pixels to remove camera jitter. this.game.renderer.renderSession.roundPixels = true;That, combined with Phaser.CANVAS in the Game constructor, did the trick. jdnichollsc 1 Link to comment Share on other sites More sharing options...
i3Designer Posted September 18, 2015 Author Share Posted September 18, 2015 Grazie drhayes: D In other my games I made only smoothed = false, but now in this new game, smoothed doesn't work, but now is perfect :D drhayes 1 Link to comment Share on other sites More sharing options...
i3Designer Posted September 19, 2015 Author Share Posted September 19, 2015 But this doesn't work with font/text Link to comment Share on other sites More sharing options...
i3Designer Posted September 19, 2015 Author Share Posted September 19, 2015 Perfect, i solved with bitmapfont http://kvazars.com/littera/ Link to comment Share on other sites More sharing options...
Recommended Posts