ipixel
v1.0.4
Published
phaser common tool
Downloads
1
Readme
#IPixel
NO_BORDER fit usage
first
var ipixel=new IPixel(game) after new Phaser.Game.
second
call ipixel.utility.noBorder() at boot state or load state,then call ipixel.utility.centerCamera() at preload or create function every game state.
param
//unnecessary width
game.scaleConfig.deltaX,
//unnecessary height
game.scaleConfig.deltaY,
//scale factor of your game
game.scaleConfig.factor,
if you have called ipixel.utility.centerCamera(),unnecessary width on the left and right should be game.scaleConfig.deltaX/2. Unnecessary height is the same as unnecessary height.