늑대의침공
-
[API] 늑대의 침공 기본형0x05 Programming/API / MFC 2009. 10. 30. 11:45
#include "stdafx.h" #include #include #include "my.h" #define MAX_LAMB_COUNT 10 struct S_MY { int x; int y; int w; int h; int life; char name[10]; }; S_MY g_lamb[MAX_LAMB_COUNT]; S_MY g_wolf = {100,100,20,20,10,"wolf"}; int g_score = 0; void MyIni(HWND hWnd, WPARAM wParam, LPARAM lParam) { int i; srand(time(NULL)); for(i=0;i