Phaser API Documentation

  Version: 
setRoundPixels(value)

Description:

Should the Camera round pixel values to whole integers when rendering Game Objects?

In some types of game, especially with pixel art, this is required to prevent sub-pixel aliasing.

Parameters:

name type description
value boolean

true to round Camera pixels, false to not.

Returns:
Description:

This Camera instance.

Since: 3.0.0