void CRussia::DrawScore(CDC *pDC)
{
TCHAR szBuffer[20];
pDC->SetTextColor(RGB(255,255,0));
pDC->SetBkColor(RGB(0,0,0));
pDC->TextOut(240,50,_T("Next"),4);//THE NEXT TYPE
pDC->TextOut(240,150,_T("Score"),5);//SCORE
pDC->TextOut (250, 180, szBuffer,wsprintf (szBuffer, _T("%i"),m_nScore)) ;
pDC->TextOut(240,230,_T("Level"),5);//LEVEL
pDC->TextOut (250, 260, szBuffer,wsprintf (szBuffer, _T("%i"),m_nSpeed)) ;
}
void CRussia::Start()
{
m_bStop = FALSE;
m_nScore = 0;
m_nRow = 20;//ROW
m_nCol = 10;//COL
m_nSpeed = 1;//SPEED
srand((unsigned)time(0));//not the same for ererytime
int i,j;
for (i = 0;i < 10;i++)
for (j = 0;j < 20;j++)
{机械传动式轮胎定型硫化机横梁运动形式
ColBox[i][j].nFlag = 0;
ColBox[i][j].nCol = 0;