ipixel

1.0.4 • Public • Published

#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.

Readme

Keywords

none

Package Sidebar

Install

npm i ipixel

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • yeluoqiuzhi