int score;
int lives;
+int level;
int drawlocation = 0;
int pod_in = 0;
}
-void draw_board(int location){
+void draw_board(){
// mvprintw(row,col,string,vars)
//top
mvprintw(0,0,"--------------------------------------------------------------------------------\n");
mvprintw(20,x,"<=>");
count--;
};
- //Location
- mvprintw(22,1,"Location:%3d", location);
+ //Level
+ mvprintw(22,1,"Level:%8d", level);
}
int input = 0;
int podloop = 0;
+ int podcount = 0;
+
cbreak();
halfdelay(1);
noecho();
clear();
// Draw board
- draw_board(player.y);
+ draw_board();
//process object motion
player = process_motion(player, player);
//check for / process player fire
//check for 0 active pods, saved pods, level victory
+ podcount = pod2.active+pod3.active+pod4.active+pod5.active+pod6.active+pod7.active+pod8.active+pod9.active;
+ if(podcount<=0){
+ //Advance level
+ //Tally bonuses
+ //Award lives, if any
+ //Print goodies, getch
+ //Reactivate pods if not zombied, regen enemies
+ };
}; //end main loop