int enshotchannel = -1;
Mix_Chunk *missilesound = NULL;
int missilechannel = -1;
+ Mix_Chunk *levelendsound = NULL;
+ int levelendchannel = -1;
Mix_Music *title = NULL;
crazifysound = Mix_LoadWAV("data/crazify.ogg");
enshotsound = Mix_LoadWAV("data/enshot.ogg");
missilesound = Mix_LoadWAV("data/missile.ogg");
+ levelendsound = Mix_LoadWAV("data/level_end.ogg");
title = Mix_LoadMUS("data/title_music.ogg");
} else {
crazifysound = Mix_LoadWAV("/usr/share/curfender/data/crazify.ogg");
enshotsound = Mix_LoadWAV("/usr/share/curfender/data/enshot.ogg");
missilesound = Mix_LoadWAV("/usr/share/curfender/data/missile.ogg");
+ levelendsound = Mix_LoadWAV("/usr/share/curfender/data/level_end.ogg");
title = Mix_LoadMUS("/usr/share/curfender/data/title_music.ogg");
}
bosscount = 0;
for(int bossloop = 0; bossloop<6; bossloop++){ bosscount = bosscount + bosses[bossloop].active; };
if(landercount<=0&&bosscount<=0){
+ levelendchannel = play_sound_effect(levelendsound);
//Tally bonuses
//Award lives, if any
if(lives<4){lives++;};
Mix_FreeChunk(crazifysound);
Mix_FreeChunk(enshotsound);
Mix_FreeChunk(missilesound);
+ Mix_FreeChunk(levelendsound);
//no need to free title music, done after title.
}else{
object.face=0;
};
+ if(object.active==1){
+ //possible pod out of bounds fix hack
+ if(object.x>18){object.x=18;};
+ if(object.x<2){object.x=2;};
+ };
};
if((object.number>=11)&&(object.number<=13)){