Jump to content

Using Phaser with a gestures javascript library


scutajar
 Share

Recommended Posts

Right, so I've been trying to get this gesture recognition script to work with Phaser 1.1.2. My current set up is as follows:

I'm using Rich's basic template, and once the Game state is entered, a gestures object is loaded. I've modified the code slightly to be able to pass the Phaser game object in; this allows me to detect the canvas object that Phaser creates.

My problem is here, however. If the gestures script uses Phaser's canvas, I don't see anything drawn. If I let the script generate its own canvas on top of the Phaser canvas, I see everything normally.

I'm not exactly sure how I'm meant to solve this, or if I can just leave the page with 2 canvases and work from there.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...