HTML5 Platform Game for iPhone
I’ve spent today porting my HTML 5 platformer, mentioned in an earlier post, to run on iPhone/iPod Touch.
The game uses the HTML 5 Canvas element and a few iPhone-specific HTML/JS extensions. It should still run on most desktop and mobile web browsers however.
I’ve tested the game on an iPhone 3G and 3Gs. The 3Gs performs as well as a desktop PC which is some feat! The 3G on the other had is a little sluggish, but the game is still playable; if you’re using a 3G I recommend playing the game with your phone upright (portrait) for best performance, since in this mode the game aims to draw to a smaller area of the display.
It is also possible to play the game full screen, that is without the Safari address bar & toolbar, by adding the game to your home screen.
According to Liam Green-Hughes on Twitter, the game also runs fine on the Nokia N900, running Firefox.
See my earlier post for the history of the game, or to play the desktop version. As before I invite you to take a look at the source code of the game. Simply hit your browser’s “view source” button to read the code.
Click the Play link below (ideally on your iPhone!) and be sure to leave a comment with your thoughts.
Or go to this address on your iPhone: http://tinyurl.com/purplefloyd