Little Man

Last night I decided to mess about with Javascript’s window.DeviceOrientationEvent events. I put this little page together, check this out on your phone: http://www.danielstuart.ie/little-man/ .

September_03__2013_at_1253AM

You can control the Little Man by tilting your phone! It should capture input from your phones accelerometer if its “Smart Enough” 🙂 Its a bit buggy and the physics is a bit basic. But I hope to make some improvements in velocity, acceleration, add in some gravity so he can jump, maybe some wind?

Anyhoo, complete credit for the sprite image that I used goes to 10firstgame’s wordpress blog, I hope he doesn’t mind me using it!