Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Base del juego
- global.naveActual = PRIMER_NAVE;
- if(room != rm_jugando)
- global.nivelActual = EN_MENU;
- global.registroPalabras[0] = "Cerveza";
- global.registroPalabras[1] = "Queseyo";
- global.registroPalabras[2] = "Hola";
- for (var i=0; i<20; i++)
- registroFotos[i] = i;
- if keyboard_check_pressed(vk_escape)
- game_end();
- /// Mouse: detección y cambio de index de la Nave
- // Guarda el número de index de la nave actual
- var numeroDeNave = obj_Nave.image_index;
- // Al superponer el cursor en las sig. coordenadas
- if(mouse_x >= 448 and mouse_x <= 512 and mouse_y >= 416 and mouse_y <= 480){
- image_index = 1;
- if(mouse_check_button_pressed(mb_left)){
- // Cambia el index de la nave al contrario
- if(numeroDeNave == 0)
- numeroDeNave = 1;
- else
- numeroDeNave = 0;
- obj_Nave.image_index = numeroDeNave;
- }
- }else
- image_index = 0;
Advertisement
Add Comment
Please, Sign In to add comment