if(landers[landerloop].active==1&&landers[landerloop].chase<=0){
if(rand()%1000>500){
// lander shoot
- enshotchannel = play_sound_effect(enshotsound);
for(int landershotloop = 0; landershotloop<landershotmax; landershotloop++){
if(landershot[landershotloop].active==0){
int multiplier = 1;
+ enshotchannel = play_sound_effect(enshotsound);
landershot[landershotloop].active=1;
//set direction
if(player.y<landers[landerloop].y){
if(crazies[crazyloop].active==1){
if(rand()%1000>200){
// crazy shoot
- enshotchannel = play_sound_effect(enshotsound);
for(int crazyshotloop = 0; crazyshotloop<landershotmax; crazyshotloop++){
if(landershot[crazyshotloop].active==0){
int multiplier = 1;
+ enshotchannel = play_sound_effect(enshotsound);
landershot[crazyshotloop].active=1;
//set direction
if(player.y<crazies[crazyloop].y){
if(crawlers[crawlerloop].active==1&&crawlers[crawlerloop].chase<=0){
if(rand()%1000>500){
// crawler shoot
- enshotchannel = play_sound_effect(enshotsound);
for(int crawlershotloop = 0; crawlershotloop<landershotmax; crawlershotloop++){
if(landershot[crawlershotloop].active==0){
int multiplier = 1;
+ enshotchannel = play_sound_effect(enshotsound);
landershot[crawlershotloop].active=1;
//set direction
if(player.y<crawlers[crawlerloop].y){
if(bosses[bossloop].active==1){
if(rand()%1000>600){
// boss shoot
- enshotchannel = play_sound_effect(enshotsound);
for(int bossshotloop = 0; bossshotloop<landershotmax; bossshotloop++){
if(landershot[bossshotloop].active==0){
int multiplier = 1;
+ enshotchannel = play_sound_effect(enshotsound);
landershot[bossshotloop].active=1;
//set direction
if(player.y<bosses[bossloop].y){