void GameScene::ResetPlayer()
{
if (pPlayer == NULL)
pPlayer = new Tank(GameManage::wndWidth/2, GameManage::wndHeight-GetPrivateProfileInt(L"Player", L"size",50, fileIni), UP, GetPrivateProfileInt(L"Player", L"vel",2, fileIni), GetPrivateProfileInt(L"Player", L"size",50, fileIni)
,1, true, Ball);
pPlayer->SetPos(GameManage::wndWidth/2, GameManage::wndHeight-GetPrivateProfileInt(L"Player", L"size",50, fileIni));
}
void Entity::DrawEntity(HDC hdc)
{
HDC hdcMem = CreateCompatibleDC(hdc);
HBITMAP bmp = a;
HBITMAP hbmOld = (HBITMAP)SelectObject(hdcMem, bmp);
BITMAP bm;
GetObject(bmp, sizeof(bm), &bm);
SetStretchBltMode(hdc,STRETCH_HALFTONE);
SelectObject(hdcMem, hbmOld);
DeleteDC(hdcMem);
}