gaelbeltran Posted November 30, 2015 Share Posted November 30, 2015 Hello, I've been searching through the forum and google but couldn't find info on this.Is there a standard way to do this? I want to show an image to the player that says something like "Please rotate your device" and change the background color.But panda only shows a white screen. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Eizch Posted December 1, 2015 Share Posted December 1, 2015 I don't know with panda.js, but I would try using something like boostrap's conditional styling to show a div over the game when the screen is not in the side you want it. Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted December 1, 2015 Author Share Posted December 1, 2015 In that case is there a method to detect orientation change? Quote Link to comment Share on other sites More sharing options...
Eizch Posted December 1, 2015 Share Posted December 1, 2015 Not directly that I know of. Using bootstrap's media queries you coul use something like (in .less)@media (max-width: @screen-xs-max) and (orientation:landscape) { // Put your conditional css here}And then if you need to do things with javascript maybe you could try this "hack" https://www.fourfront.us/blog/jquery-window-width-and-media-queries This should work on a page web, but I have no idea how to deploy an app yet, so I don't know if it can work in the final product. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.