jQuery Mobile?

edited January 2013 in Support
Hi.
I'm wondering, will the game engine work on jQuery Mobile instead of usual jQuery ?
Thanks.

Comments

  • Accepted Answer
    jQuery Mobile is build on jQuery, it doesn't replace it. So if you're careful you should be abe to use gameQuery with jQuery Mobile. There shouldn't be any conflict since everything is well namespaced in gQ.

    What you need to be careful is not to move the sprite (or groups/tile-maps) using any helper functions from jQ Mobile since this will break the collision detection!
  • Hi. Thanks for a quick answer!

    I was wondered, are you still support this engine or not... I'm glad to see you here!

    I understood that I ask this question too early... I see that jQuery Mobile doesn't replace the jQuery. I need to use JQM because our game should be able to work on mobile devices. One of the problem I have now is that on mobile device the "click" event comes a little later than on PC. Now I'm trying to find another event which will work faster.

    Another problem is how to make the playground size different on different mobile screens. The game should work in "fullscreen" mode on mobile devices and in a usual "div" on PC.

    Can you help?
    Thanks!
  • You can use touch event even without using jQM, they work quite well.
    As for the full screen mode you should be able to specify it the browser using the viewport meta tag.
Sign In or Register to comment.