Thursday, July 04, 2013

TouchDevelop–Acceleration and GameLoop

Happy Fourth of July! If you are on the Internet today it should be for fun. For that reason I recorded a little video of using TouchDevelop to demo the GameLoop event and the Acceleration sensor on a Windows Phone 8.

TouchDevelop Demo using GameLoop and Acceleration sensor

I have no idea if this is the best way to do things but it was fun and it seems to work. Basically the GameLoop is an event that happens in an infinitely repeating loop as long as the app is running. After adding that event I added some simple code to check on the acceleration, have the Turtle turn based on that acceleration and then move forward a bit. Easy as it gets.


I figure this is just a start for experimentations. Let me know if you do anything cool with it yourself.

No comments: