Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi!

I'm learning for windows phone 8, and i wanted to write an app where i can move an image using the accelerometer, not a level detector, i want it to move just like in labyrinth games. How would i make this happen? Does anyone have any good samples/turials/explainations or similar? I have been searching the web for two days now, trying to be integrating it. It will be used for a very simple learning-game for myself since i learn alot from samples. I have started my project as a normal app, since this is what i absolutely like to develop with, the UI design, etc, i have already created a basic UI, and also things the ball can collide into, things like arcs and stuff(controls). I am writing it in C#, i also got a little knowledge from java game development (not very much).

Thanks alot!
Posted

1 solution

Microsoft gently provides "How to get data from the accelerometer sensor for Windows Phone"[^].
Once you are able to get accelerometer inputs, you should easily do a (rough) simulation the ball movement.
 
Share this answer
 
Comments
Member 9953646 12-Sep-13 9:34am    
Thanks, i'll look into it:)
CPallini 12-Sep-13 10:59am    
You are welcome.
Sergey Alexandrovich Kryukov 12-Sep-13 11:31am    
Sure, 5ed.
—SA
CPallini 12-Sep-13 15:24pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900