// La función principal del juego int main(int argc, char *argv[]){ CGame *navesGame = new CGame();//Crea un objeto usando apuntadores if(navesGame->Start()) navesGame->Finalize(); // Liberamos los recursos utilizados. //PlaySound("musicafondo.wav",NULL, SND_FILENAME|SND_ASYNC); ////"C:\\Users\\Cristian\\Documents\\GitHub\\Naves_Inicio\\Data\\*/ //system("PAUSE"); return EXIT_SUCCESS; }
// La función principal del juego int main(int argc, char *argv[]){ CGame *navesGame = new CGame();//Cra un objeto usando apuntadores /*for(int i=0;i<15;i++) { int azar = rand(); printf("%d\n",azar%16); } getchar();*/ if(navesGame->Start()) navesGame->Finalize(); // Liberamos los recursos utilizados. return EXIT_SUCCESS; }
int WINAPI WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in LPSTR lpCmdLine, __in int nShowCmd ) { #ifdef _DEBUG _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); #endif // _DEBUG CGame *game = CGame::GetInstance(); if (!game->Initialize()) { MessageBox(NULL, "³õʼ»¯Ê§°Ü!", "´íÎó", MB_OK | MB_ICONWARNING); return 1; } game->Start(); game->Finalize(); return 0; }