(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Accessing the Accelerometer in a Windows 8 Metro Style App using HTML and JavaScript

(0 votes)
0 comments   /   posted by Silverlight Show on Apr 26, 2012
Tags:   windows-8 , metro , html5 , dave-isbitski

Read original post by Dave Isbitski at DaveDev

I have recently been coding a Windows 8 Metro Style App using the new Windows 8 Consumer Preview bits and Visual Studio 11 Express. The app is going to be a retro shooter that takes advantage of HTML5 Canvas for the main game engine and then several Windows 8 Metro Style App Features. Rather then wait for the game to be completely finished I figured I would start sharing some of my development experiences here on my blog.

One of the first ideas I had was for a “Gravity Pulse” power that would be granted upon earning a predefined a amount of points (1,500 pts being the default). Every time the user gains these amount of points a custom sound file will be played and then the screen will display a message to shake the device. If the user shakes the device within a predefined amount of time all ships on the screen will blow up.


Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter