AJAXAFY-PAGE-START

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: , ,

Friday, July 20, 2007

Developing for the iPhone

Though I don't own one yet, I find this subject intriguing. A cool site that gets you off to a good start is: http://www.iphonewebdev.com/ Click on the Examples button. This is where there is some really good stuff!

It's a fun place to poke around. Yes, I am working on a game for the iPhone. It is well along it's way to completion. I'm initially testing it in Safari on an XP box. Once I think it is ready, I'm going to the Apple store to test it out on one of their showroom models.

What is the game? I'm not telling until it's done!

Labels: ,

AJAXAFY-PAGE-END