This is exactly what Joel Ivory Johnson provided at Codeproject, in the tricky field of DirectX for Windows Mobile.
The application is a remake of an old game, recoded to support DirectDraw and also makes use of the Samsung Windows Mobile SDK to take advantage of some of the user interaction features that their phones provide, including the accelerometer, the wheel key, haptic feedback, and the notification LED.
Besides the source code Joel also engages in an in-depth discussion of the games logic, DirectDraw, and the Samsung Windows Mobile SDK.
For any developer hoping to take advantage of the new Windows Mobile marketplace by coding a quick game, this may be your best start.
Read more at Codeproject here.