Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Musica de fondo*/ PlaySound(TEXT("World_Map.wav"), NULL, SND_ASYNC);
- system("color 0f");
- printf(" ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» n");
- printf(" º JUEGO DEL GATO :D º n");
- printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ n");
- printf("n");
- //Posiciona el cursor y el menu
- goy(4);
- printf("t INICIAR n");
- printf("t SALIR n");
- goy(4);
- printf("------->");
- while(TRUE){
- Sleep(100);
- if (GetAsyncKeyState(VK_UP)){
- Menu == 1 ? 2: --Menu;
- printf("r ");
- goy(4 + Menu-1);
- printf("------->");
- /*Sonido del boton*/ PlaySound(TEXT("FX_022.wav"), NULL, SND_ASYNC);
- } else if (GetAsyncKeyState(VK_DOWN)) {
- Menu == 2 ? 1: ++Menu;
- printf("r ");
- goy(4 + Menu-1);
- printf("------->");
- /*Sonido del boton*/ PlaySound(TEXT("FX_022.wav"), NULL, SND_ASYNC);
- } else if (GetAsyncKeyState(VK_RETURN)) {
- /*Sonido del boton*/ PlaySound(TEXT("FX_044.wav"), NULL, SND_ASYNC);
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement