Monday, July 23, 2007

iPhone event handling frustration

I went with my wife on Friday evening to Oakbrook Centre to the Apple store and tapped in the URL for my iPhone game.
  • The game fits in the screen properly.
  • The game's attract mode worked pretty good, but it ran WAY slower than it did in the Safari browser on my PC at home.
  • Tapping the screen did start the game, but...
  • onmousemove did not work.

I've been scouring the internet looking for information on how to use the proper event handlers in Javascript to make it so the user can use his finger to move a paddle back and forth over the screen (this info is a little hint on the game I am working on). I've had very little luck so far.

As far as speed, I might be able to set the setTimeout timer value to a smaller value when running on an iPhone.

I'm somewhat stumped regarding the paddle control right now. Any ideas regarding how to do this in Javascript?

Labels: , ,


Post a Comment

Subscribe to Post Comments [Atom]

<< Home