— Shang Liang

vikingsmackdown.com Brilliant Simple Idea

Developing iPhone stuff with Cocoa, Objective-C and xCode? Take a look at www.vikingsmackdown.com. If you don’t have an iPhone, you can view the video in this article from TechChurch.

I thought it was built with the accelerometer and stuff but it was just JavaScript! It listens to a Safari browser event, “onorientationchange”. So technically, it’s not motion sensing. It’s a very old JavaScript event “onresize”. All other phones with a rotatable browser can also implement this diea.

More information of developing JavaScript based applications or games can be found at Apple Web Apps DevCenter.

1 comment
Submit comment

For spam filtering purposes, please copy the number 6921 to the field below: