Creates a new Pixel Perfect Handler function.
Access via InputPlugin.makePixelPerfect
rather than calling it directly.
name | type | description |
---|---|---|
textureManager | Phaser.Textures.TextureManager |
A reference to the Texture Manager. |
alphaTolerance | number |
The alpha level that the pixel should be above to be included as a successful interaction. |
The new Pixel Perfect Handler function.