int pod_in = 0;
int pause = 0;
int shieldsleft = 400;
+int tripshot = 0;
struct game_object {
int number; //object number
break;
};
};
+ if(tripshot>=1){
+ for(int bulletloop = 0; bulletloop<bulletmax; bulletloop++){
+ if(bullets[bulletloop].active==0){
+ bullets[bulletloop].active=1;
+ if(player.face==0){ bullets[bulletloop].direction = 4; };
+ if(player.face==1){ bullets[bulletloop].direction = 6; };
+ bullets[bulletloop].speed = player.speed + 2;
+ bullets[bulletloop].x = player.x-1;
+ int multiplier = 1;
+ if(player.direction == 4){multiplier = -1; };
+ bullets[bulletloop].y = player.y + (player.speed * multiplier);
+ bullets[bulletloop].vtime = 1;
+ tripshot--;
+ break;
+ };
+ };
+ for(int bulletloop = 0; bulletloop<bulletmax; bulletloop++){
+ if(bullets[bulletloop].active==0){
+ bullets[bulletloop].active=1;
+ if(player.face==0){ bullets[bulletloop].direction = 4; };
+ if(player.face==1){ bullets[bulletloop].direction = 6; };
+ bullets[bulletloop].speed = player.speed + 2;
+ bullets[bulletloop].x = player.x+1;
+ int multiplier = 1;
+ if(player.direction == 4){multiplier = -1; };
+ bullets[bulletloop].y = player.y + (player.speed * multiplier);
+ bullets[bulletloop].vtime = 1;
+ tripshot--;
+ break;
+ };
+ };
+ };
};
-
+
+
//check for / process smartbomb
if(input=='a'&&smartbombs>=1){
smartbombs--;