Jump to content

Code working in browser, but not mobile


rtlehr
 Share

Recommended Posts

Hey all,

 

     I'm just starting to get into making a game using Phaser.  I've created a sample of a joystick controller and trying to test it and I'm having some issues, that I can't track down.  The link to the sample is below.  Here is what is hapening.  Everything is working fine on a desktop broswer.  On the iPad (with iOS 8) the program is running, I can see the console.log stements I have in the update function, but there are no graphics.  On an iPhone 4s (running iOS 7) the graphics show up, things seem to be fine, but the graphics do not scale down to the phone screen size.  I'm sure I'm probably just missing something, but I can not figure it out.  Thank you very much for any help and please let me know if you need any other information.  I'm using Phaser 2.0

 

Link

http://rosslehr.com/modx/demos/joystick/index.html

 

Browser - user the arrow keys to move the ship

 

Mobile - press and move the joystick with thumb (or finger in the bottom left hand corner) to move the ship.  The center circle in the joystick is the controler, the outer circle is the bounds of the joystick

 

Thanks so much,

Ross

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...