iPhone Arkanoid
Scott Schiller has updated his dHTML Arkanoid game to work on the iPhone.
Although the mouse events meant that the game wouldn’t work as-is, Scott added an extra div if the browser is an iPhone, and it handles click events.
-
-
if (isIphone) {
-
this.iphoneTarget = document.createElement(‘div’);
-
this.iphoneTarget.href = ‘#’;
-
this.iphoneTarget.id = ‘iphoneTarget’;
-
this.iphoneTarget.onclick = mmH;
-
arkanoidBody.appendChild(this.iphoneTarget);
-
}
-

