having 2 playgrounds on the same page
  • Hi,

    First of all I know this has been answered before, but the solution provided doesn't work for what i need. I'm trying to use the gamequery plugin for a site that will be running on mobile devices. I need to have at least 2 different playgrounds on the same page, but using iframes is too expensive, as the page has some transitions to other pages (that will have more playgrounds) and when trying to use iframes the transition animation between pages is not fluid enough and too slow.

    Does anyone now if there's a way to put the gamequery code inside some wrapper (like jquery widget or so) so it can be encapsulated in order to work independently and this way having 2 playgrounds working independently? Had anyone done this before?

    Thanks
  • I see one dirty solution: you can create multiple version of the gameQuery script where you replace the gameQuery and gQ namespace with other ones. If you go with this you'll have to replace the CSS namespace too!

    The other solution would 'simply' be to go through gQ codes and find the problematic parts. You could the fix the code and submit it as a patch for others to use :)

  • Another possibly is instead of having 2 playgrounds, create 2 games within the same playground and set up major conditions that allow the player to play one game or the other within the same environment, or perhaps privlage to access game2 once they complete game1?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!