const int podmax = 8;
const int bulletmax = 10;
const int landershotmax = 10;
-const int landermax = 4;
+const int landermax = 12;
const int crawlermax = 6;
const int missilemax = 3;
const float version = 1.0;
{ 60, 1, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
{ 61, 1, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
{ 62, 1, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
- { 63, 1, rand()%16, rand()%620, 0, 0, 1, 0, 0 }
+ { 63, 1, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 64, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 65, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 66, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 67, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 68, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 69, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 70, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 },
+ { 71, 0, rand()%16, rand()%620, 0, 0, 1, 0, 0 }
};
for(int landerloop = 0; landerloop<landermax; landerloop++){
{ 90, 0, 0, 0, 6, 0, 1, 0, 0 },
{ 91, 0, 0, 0, 4, 0, 1, 0, 0 },
{ 92, 0, 0, 0, 6, 0, 1, 0, 0 },
- { 93, 0, 0, 0, 4, 0, 1, 0, 0 }
+ { 93, 0, 0, 0, 4, 0, 1, 0, 0 },
+ { 94, 0, 0, 0, 6, 0, 1, 0, 0 },
+ { 95, 0, 0, 0, 4, 0, 1, 0, 0 },
+ { 96, 0, 0, 0, 6, 0, 1, 0, 0 },
+ { 97, 0, 0, 0, 4, 0, 1, 0, 0 },
+ { 98, 0, 0, 0, 6, 0, 1, 0, 0 },
+ { 99, 0, 0, 0, 4, 0, 1, 0, 0 },
+ { 100, 0, 0, 0, 6, 0, 1, 0, 0 },
+ { 101, 0, 0, 0, 4, 0, 1, 0, 0 }
};
for(int crazyloop = 0; crazyloop<landermax; crazyloop++){
//shield
struct game_object shields[12] = {
- { 100, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 101, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 102, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 103, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 104, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 105, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 106, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 107, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 108, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 109, 1, 0, 0, 5, 0, 1, 0, 0 },
{ 110, 1, 0, 0, 5, 0, 1, 0, 0 },
- { 111, 1, 0, 0, 5, 0, 1, 0, 0 }
+ { 111, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 112, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 113, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 114, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 115, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 116, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 117, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 118, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 119, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 120, 1, 0, 0, 5, 0, 1, 0, 0 },
+ { 121, 1, 0, 0, 5, 0, 1, 0, 0 }
};
strcpy (shields[0].line0, "-");
strcpy (shields[11].line0, "(");
struct game_object powerups[4] = {
- { 120, 0, 0, 0, 6, 0, 1, 0, 0 },
- { 121, 0, 0, 0, 4, 0, 1, 0, 0 },
- { 122, 0, 0, 0, 6, 0, 1, 0, 0 },
- { 123, 0, 0, 0, 4, 0, 1, 0, 0 }
+ { 130, 0, 0, 0, 6, 0, 1, 0, 0 },
+ { 131, 0, 0, 0, 4, 0, 1, 0, 0 },
+ { 132, 0, 0, 0, 6, 0, 1, 0, 0 },
+ { 133, 0, 0, 0, 4, 0, 1, 0, 0 }
};
//Reference loops 200-230
struct game_object crawlers[crawlermax] = {
{ 30, 1, 18, rand()%620, 0, 0, 1, 0, 0 },
{ 31, 1, 18, rand()%620, 0, 0, 1, 0, 0 },
- { 32, 1, 18, rand()%620, 0, 0, 1, 0, 0 },
- { 33, 1, 18, rand()%620, 0, 0, 1, 0, 0 },
- { 34, 1, 18, rand()%620, 0, 0, 1, 0, 0 },
- { 35, 1, 18, rand()%620, 0, 0, 1, 0, 0 }
+ { 32, 0, 18, rand()%620, 0, 0, 1, 0, 0 },
+ { 33, 0, 18, rand()%620, 0, 0, 1, 0, 0 },
+ { 34, 0, 18, rand()%620, 0, 0, 1, 0, 0 },
+ { 35, 0, 18, rand()%620, 0, 0, 1, 0, 0 }
};
for(int crawlerloop = 0; crawlerloop<crawlermax; crawlerloop++){
drawlocation = draw_object(gatebeam2, drawlocation);
drawlocation = draw_object(gatebeam3, drawlocation);
- // Draw landers objects 60-63
+ // Draw landers objects 60-71
for(int landerloop = 0; landerloop<landermax; landerloop++){
if(landers[landerloop].active==1){
drawlocation = draw_object(landers[landerloop], drawlocation);
};
};
- // Draw crazies objects 90-93
+ // Draw crazies objects 90-101
for(int crazyloop = 0; crazyloop<landermax; crazyloop++){
if(crazies[crazyloop].active==1){
drawlocation = draw_object(crazies[crazyloop], drawlocation);
//Smart bomb
if(smartbombs<=3){smartbombs++;};
//regen landers
- for(int landerloop = 0; landerloop<landermax; landerloop++){
+ int landerlimit;
+ if(level<=4){landerlimit=8;};
+ if(level>4&&level<=12){landerlimit=6;};
+ if(level>12&&level<=16){landerlimit=8;};
+ if(level>16&&level<=20){landerlimit=10;};
+ if(level>20){landerlimit=12;};
+
+ for(int landerloop = 0; landerloop<landerlimit; landerloop++){
if(landers[landerloop].active==0){
landers[landerloop] = lander_init(landers[landerloop]);
};
};
//regen crawlers
- for(int crawlerloop = 0; crawlerloop<crawlermax; crawlerloop++){
+ int crawlerlimit;
+ if(level<=8){crawlerlimit=2;};
+ if(level>8&&level<=16){crawlerlimit=4;};
+ if(level>16){crawlerlimit=6;};
+
+ for(int crawlerloop = 0; crawlerloop<crawlerlimit; crawlerloop++){
if(crawlers[crawlerloop].active==0){
crawlers[crawlerloop] = crawler_init(crawlers[crawlerloop]);
};