Jump to content

Help with config in boot and index files, and problems with audio in windowsPhone


tijuinem
 Share

Recommended Posts

hi there
this is my first game in phaser. I love it !!! XD. I am newbie in html5. javascript , etc. I was  developed C++  in XX century   :)
 
I have several questions.
 
1.- I am not getting a full screen game with "responsive" template.
I am using this code in index.html
var game = new Phaser.Game("100%", "100%", Phaser.AUTO, '');
and this setup in boot.js
this.scale.scaleMode = Phaser.ScaleManager.RESIZE;  

but I don´t get that the smartphones load a full screen. Only a little bit of screen. You can check it.

 
 
 
with  line in index.html
var game = new Phaser.Game(640, 960, Phaser.AUTO, '');

and this one in boot.js 

this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;

I get a almost full screen. but the result is not good.

 
In desktop both results are correct
I´d like to get a full screen in all smartphones.
 
3.- also, I have a problem with the music in windows phone.
windowsPhone does not load my program if I use mp3 files, and if I use ogg, I cannot hear anything.
 
works but it does not ring 
this.load.audio('ambiental_1', ['audio/theme_neurorazer.ogg']); 

it does not working, preloader screen crash.

this.load.audio('ambiental_1', ['audio/theme_neurorazer.mp3']); 

it does not working, The preloader screen crash.

this.load.audio('ambiental_1', ['audio/theme_neurorazer.mp3 ,'audio/theme_neurorazer.ogg' ']); 
any ideas.
thks for all.
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...