用VC写的,感兴趣的朋友交流技术之用.部分代码如下: #include #include "Game.h" #include "resource.h" #define SCREEN_W 640 #define SCREEN_H 480 #define OFFSETX 100 #define OFFSETY 48 #define PLAYER1_STARTX 130 #define PLAYER1_STARTY 386 #define PLAYER2_STARTX 258 #define PLAYER2_STARTY 386 #define SAFE_RE