上传者: zouyuren
|
上传时间: 2019-12-21 22:24:08
|
文件大小: 493B
|
文件类型: lnk
Invalidate();
UpdateWindow();
CDC *pdc=GetDC();
if(iFillSolidRect(x,y,50,50,RGB(255,255,255));
else
{
if(a%2==0)
x=(x+a)%(rc.Width()-50);
else
x=(x-a)%(rc.Width()-50);
if(b%2==0)
y=(y+b)%(rc.Height()-50);
else
y=(y-b)%(rc.Height()-50);
if(x<0)
x=0;
if(yFillSolidRect(x,y,50,50,RGB(255,255,255));
else
pdc->FillSolidRect(x,y,50,50,RGB(255,0,0));
}
}
else
{
KillTimer(1);
record[t]=5000-i*50;
MessageBox("游戏超时");
CString str;
str.Format("%d",record[t]);
MessageBox(str);
}
i++;
}