text: export class Align {
    static scaleToGameW(obj, per) {
      obj.displayWidth = game.config.width * per;
      obj.scaleY = obj.scaleX;
    }
  
    static centerH(obj) {
      obj.x = game.config.width / 2 - obj.displayWidth / 2;
    }
  
    static centerV(obj) {
      obj.y = game.config.height / 2 - obj.displayHeight / 2;
    }
  
    static center2(obj) {
      obj.x = game.config.width / 2 - obj.displayWidth / 2;
      obj.y = game.config.height / 2 - obj.displayHeight / 2;
    }
  
    static center(obj) {
      obj.x = game.config.width / 2;
      obj.y = game.config.height / 2;
    }
  }