#include <cstring>
#include <cstdlib>
#include <time.h>
+#include <algorithm>
int score;
int lives;
//check for / process pod pickup
if(pod_in==0){
- for each (game_object pod in pods){
- if(pod_in==0){
- if(check_collision(pod)==1){ //declare me!
- pod_in=pod.number;
- };
- };
- };
+ for_each(pods[0], pods[0], //functionize from here to--
+ if(pod_in==0){
+ if(check_collision(pod)==1){ //declare me!
+ pod_in=pod.number;
+ };
+ };
+ ); // --here.
};
-
+
//if pod in hand, check for gate dropoff
if(pod_in>0){
if((abs(player.y-gate.y)<player.speed)&&(player.x>12)){