I just discovered some new XNA 4.0 samples for the Windows Phone 7.
The sample is pretty easy to understand and seems to be simple to reuse on your own project. The screenshot above is from the TouchThumbsticks sample.
See all the samples here.
[more]
Touch Thumbsticks
This sample demonstrates a technique for using the touch panel to provide thumbstick-style controls for a game on Windows Phone.
Waypoints
This sample demonstrates basic navigation using waypoints. Waypoints has been updated to support touch controls on Windows Phone.
Sprite Sheet
This updated sample for Windows and Windows Phone shows how to implement sprite sheets, combining many separate sprite images into a single larger texture that will be more efficient for the graphics card.
Stock Effects
This Stock effects sample for Windows provides source code for the five effects (BasicEffect, SkinnedEffect, EnvironmentMapEffect, DualTextureEffect, and AlphaTestEffect), and the default shader used by SpriteBatch (SpriteEffect), built into the XNA Framework. There also is a command-line utility (CompileEffect) that uses the Content Pipeline to compile a .fx source file into a binary blob that can be passed directly to the XNA FrameworkEffect class constructor.
Accelerometer
This sample for Windows Phone demonstrates using the Accelerometer sensor in XNA Game Studio 4.o as well as supplies an Accelerometer wrapper that can be used to easily implement Accelerometer functionality in your games
Bounce
This sample for Windows Phone demonstrates Sphere to Sphere and Sphere to Plane physics through use of the Accelrometer
Fuzzy Logic
This updated sample for Windows and Windows Phone shows how an AI can use fuzzy logic to make decisions. It also demonstrates a method for organizing different AI behaviors, similar to a state machine.
– Enjoy!
Source for this article:
http://creators.xna.com/en-US/news/educationresources_July28
http://creators.xna.com/en-US/news/educationresources_Aug4