Book Image

Windows Phone 7 Silverlight Cookbook

By : Jonathan Marbutt, Robb Schiefer
Book Image

Windows Phone 7 Silverlight Cookbook

By: Jonathan Marbutt, Robb Schiefer

Overview of this book

Silverlight has revolutionized development using Microsoft technologies. It is an excellent tool for mobile application development. The XAML-based markup and familiar C# code are the perfect combination for building apps efficiently and with minimum hassle.Packed full of recipes containing comprehensive instructions for the tasks required to build modern compelling smartphone apps using Silverlight.Starting with application design and architecture, you will quickly move on to more technical features and APIs you can implement to make your app stand out. You will use the Camera API to scan barcode, location services to pinpoint the user’s GPS coordinates and accelerometer to provide feedback based on movement of the phone. All of these features can be provided in a slick user interface through the power of Silverlight. Animations, behaviors and XAML provide all you need and more.
Table of Contents (18 chapters)
Windows Phone 7 Silverlight Cookbook
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Physics engine behavior


One of the coolest libraries out there is a Farseer Physics engine that was created for Silverlight, and which also works on Windows Phone 7. What does this do? Well this engine actually allows you to place things like a collision detection system with realistic physic responses on your objects. This opens up a lot of possibilities for creating various games such as the classic labyrinth balance game, pinball games, and many other types of games.

Getting ready

To get this library, you will need to download it from CodePlex at http://physicshelper.codeplex.com/. This will provide you with the Farseer Physics engine as well as the tools to add these behaviors to your project. Once we have installed the necessary tools, we will need to add a reference to the library items by right-clicking on the project and clicking on Add Reference, navigating to C:\Program Files (x86)\Physics Helper\Physics Helper Library\WP7, and selecting the Farseer Physics 3.0 WinPhone.DLL.

How to...