Windows 8 Phone Landscape off screen

0 favourites
  • 5 posts
From the Asset Store
Get Ready for the New Wave of "Bottom Screen" Games!
  • Using the base platformer template as a test to export to Windows8 phone, I edit the mainpage.xaml and make the following adjustment to set the game in landscape mode.

    SupportedOrientations="Landscape" Orientation="Landscape"

    But when I do this, the canvas becomes offset from the screen. I have tried all the variations of scaling and adjusting Window size to 768, 480 (My Nokia 810 resolution)

    <img src="http://tyrus.net/scirra_examples/scirra1.png" border="0" />

    I even tried creating an HTML5 app in Visula Studio and then just using the HTML5 export from Construct2 in that but it has similare results.

    I'm hoping someone has solved this already. Thanks in advance.

  • Sweet I solved it!!

    In index.html change the doc ready to read like this. You have to flop the measurements that set the canvas size.

    // Start the Construct 2 project running on window load.

              jQuery(document).ready(function ()

              {               

                   // Create new runtime using the c2canvas

                   cr_createRuntime("c2canvas");

                   

                   cr_sizeCanvas(jQuery(window).height(), jQuery(window).width());

              });

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Great find. Hopefully Ashley can get this fixed in a future version of construct.

  • friends,

    i found best solution

    index.html (landscape)

    ...

         <style type="text/css">

    ...

    /* cranberrygame start */

    {

    width: device-width;

    }

    /* cranberrygame end */

    </style>

    ...

    css-tricks.com/snippets/javascript/fix-ie-10-on-windows-phone-8-viewport

  • Doesn't the browser object already give you the ability to specify landscape or portrait in your project?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)