Jump to content

Smoothed problem


i3Designer
 Share

Recommended Posts

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;
 
 
 
post-7059-0-15406200-1442498816_thumb.pn
 
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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