var ipixel=new IPixel(game) after new Phaser.Game.
call ipixel.utility.noBorder() at boot state or load state,then call ipixel.utility.centerCamera() at preload or create function every game state.
//unnecessary widthgamescaleConfigdeltaX//unnecessary heightgamescaleConfigdeltaY//scale factor of your gamegamescaleConfigfactor
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.