tatogame's Recent Forum Activity

  • +3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My entry (sadly not yet completed <img src="smileys/smiley19.gif" border="0" align="middle" /> ) is

    gamejolt.com/games/arcade/chaos-turismo/13054

    <img src="http://images2.cdn.gamejolt.com/imgserver/screenshot-thumbnail/898x1000/20916.jpg" border="0" />

  • I am able to compile something with this procedure

    PhoneGapWikiWP7

    but (as wink suggest) in HTML5 web site mode, then i changed the index.html code in something like

    <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
        <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
        
        <title>PhoneGap WP7</title>
        
           <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
        <style type="text/css">
          * {
          padding: 0;
          margin: 0;
          }
          canvas {
          position: fixed;
          }
        </style>
    
        <script type="text/javascript">
          // provide our own console if it does not exist, huge dev aid!
          if(typeof window.console == "undefined")
          {
          window.console = {log:function(str){window.external.Notify(str);}};
          }
    
          // output any errors to console log, created above.
          window.onerror=function(e)
          {
          console.log("window.onerror ::" + JSON.stringify(e));
          };
    
          console.log("Installed console ! ");
        </script>
        
          <script type="text/javascript" charset="utf-8" src="phonegap-1.4.1.js"></script>
          <script type="text/javascript" charset="utf-8" src="jquery-1.7.1.min.js"></script>
          <script type="text/javascript" charset="utf-8" src="c2runtime.js"></script>
          
        <script type="text/javascript">
    
          function init()
          {
          document.addEventListener("deviceready",onDeviceReady,false);
          document.addEventListener("backbutton",onBackButton,false);
          }
    
          function onBackButton()
          {
          console.log("onBackButton");
          }
    
          function onDeviceReady(e)
          {
          console.log("deviceready event fired!");
          }
    
          PhoneGap.addConstructor(function()
          {
          console.log("PhoneGap.addConstructor is working");
          })
    
          // once the device ready event fires, you can safely do your thing! 
          function onDeviceReady()
          {
          console.log("IS READY");
          cr_sizeCanvas();
          cr.createRuntime("c2canvas");
          }
    
          function cr_sizeCanvas()
          {
          var canvas = document.getElementById("c2canvas");
    
          if (canvas)
          {
          canvas.width = 800;
          canvas.height = 480;
    
          if (canvas.c2runtime)
          canvas.c2runtime.setSize(800, 480);
          }
          else if (window.c2runtime)
          window.c2runtime.setSize(800, 480);
          }
    
          window.addEventListener('orientationchange', cr_sizeCanvas, false);
    
        </script>
      </head>
      <body onLoad="init();" id="stage">
        <h4>PhoneGap Tests  </h4>
        <div id="fb-root"></div>
        <canvas id="c2canvas" width="800" height="480" oncontextmenu="return false;" onselectstart="return false;"></canvas>
      </body>
    </html>
    

    something seems work BUT

    From here

    IE9 does not expose touch events, or even mouse events to JavaScript. The only UI event that is available to your code is the click event. This means that many interfaces that are based on scrolling libraries and a WebKit DOM will not function as expected. The browser control DOES appear to support the CSS value of overflow:scroll, however there is no momentum and the scrolling feels sticky. I have done some quick exploration into exposing mouse events to JavaScript via the container and they do look promising. I will be moving on to this after I completed the Events API so your code can override the back-button and search-button.

    IE9 supports localStorage, and sessionStorage, however they are not available to pages that are loaded without a domain. We will be investigating implementing this API ourselves, and managing the storage in IsolatedStorage.

    so... anyone who found a method for catch input? <img src="smileys/smiley19.gif" border="0" align="middle">

  • Hello to everyone

    I bought Construct 2 some weeks ago, is a fantastic (under development) software!

    since I'm owner of a Windows Phone i want try the phoneGap exporter.

    I already have Visual studio 2010 with WP7 SDK, i dowloaded phoneGap template ( phonegap.com/start ), then i imported a simple Construct's project (a simply rotating sprite previously exported with phoneGap format).... but... it doesn't work!

    The application start with a PhoneGap logo then white screen :(

    I also watch into construct-generated-folder and i found a curious thing. The auto-generated xml "config.xml" contains

         <author href="http://test.t" email="test@test.test">test</author>     <gap:platforms>
              <gap:platform name="ios" />
              <gap:platform name="android" minVersion="4" />
              <gap:platform name="webos" />
              <gap:platform name="symbian.wrt" />
              <gap:platform name="blackberry" project="widgets"/>
         </gap:platforms>
    

    ...Without any reference to windows phone platform!

    What's wrong? <img src="smileys/smiley19.gif" border="0" align="middle" />

    PS:

    Sorry for my poor english, i'm italian :P

tatogame's avatar

tatogame

Early Adopter

Member since 21 Jan, 2012

Twitter
tatogame has 1 followers

Connect with tatogame

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies