First:
WP7 Training Kit offline package contains such a game demo in 2D. Although it is a demo, it contains less than two thousand lines, including dirty samples, screenmanager, menu, and particle system.Code....
For example, for landlords who wanted to use WIN32API, there would be nearly 7000 lines of code (including network communication )......
XNa is indeed a good game development environment.
However, there is a problem in running WP7. The simulator of A WP7 is slow, and my t9500 + 4G memory is stuck... in addition, there is no gravity sensor in the WP7 simulator ......
So I changed the code a little and made a Windows version... I added several keyboard responses ....
F2 is life-saving
S Start
Q exit
A and left, left
D and right, right
W, space, and up
Http://files.cnblogs.com/egmkang/AlienGame.zip
Enjoy it.
PS:
The WP7 simulator is super slow. Has someone solved it? If you have solved the problem, let's say it ~~