} else {
object.x=1;
object.direction=5;
- //object.vspeed=1;
- //object.vtime=0;
};
};
};
};
+ //lander pod grab logic
+ //steps
+ //decide to grab a pod
+ //choose the closest pod
+ //alert player
+ //travel to it at speed 2, match y , then direction and speed
+ //decend to pod's x-1
+ //ascend at speed 1 keep pod at x+1
+ //at x=1, destroy pod, deallocate lander, allocate crazy at same location. still need to define crazy and it's behavior
+
//check for 0 active pods, saved pods, level victory
podcount = 0;
for(int podloop = 0; podloop<8; podloop++){ podcount = podcount + pods[podloop].active; };