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

You can control the Little Man by tilting your phone! It should capture input from your phone’s accelerometer if its “Smart Enough” 🙂 It’s 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!

Leave a Reply

Your email address will not be published. Required fields are marked *