Posted By

lrodriguez on 12/21/13


Tagged

io del movil phaserjs phaser orientacin dispositivo


Versions (?)

PhaserJS, forzar orientación del dispositivo movil


 / Published in: JavaScript
 

No he comprobado aún esta línea de código pero por lo que leí es posible que funcione.

  1. //probar esto
  2. game.stage.enableOrientationCheck(false, true, 'orientation');
  3.  
  4. //probar tambien esto
  5. //To force portrait orientation, use the following:
  6.  
  7. game.stage.scale.forceOrientation(false, true, 'orientationImage');
  8.  
  9. //Please note that forcing the portrait orientation doesn't work correctly, I reported the //issue here.
  10. //To fix it, just add the following line at the beginning of StageScaleMode.forceOrientation():
  11.  
  12. this.forcePortrait = forcePortrait;
  13.  
  14. //probar tambien esto :
  15.  
  16. game.stage.scaleMode.forceLandscape = true;

Report this snippet  

You need to login to post a comment.