Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by BlondGorilla

Hi Guys

Im planning on creating a game similar to generic jump and run, its going to run on a wifi hotspot portal and which for some reason means the window event listener 'resize' wont ever trigger so the game will always load in portrait mode... however it needs to really be played in landscape mode as its pretty crap without it...

it needs to run on mobile phones with many different screen sizes and aspect ratios so Im struggling to work out how I can force the game to load in landscape mode even if the users is viewing it on the phone in portrait mode.

Any help would be much appreciated

1 decade ago by Apiheld

Your question isn't really Impact-related. If you don't release your game as an app with Ejecta (with which you could enforce landscape mode), you need to look for ways to:

a) turn the canvas by 90° or
b) detect the device orientation in HTML (which is a part of responsiveness) and act accordingly

But this is a HTML-related question. Maybe this helps:

http://stackoverflow.com/questions/10975387/mobile-site-force-landscape-only-no-auto-rotate
Page 1 of 1
« first « previous next › last »