Laid groundwork for level advancement.
authorlimb <limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Fri, 1 Dec 2006 20:37:44 +0000 (20:37 +0000)
committerlimb <limb@bc5cbbab-a4ec-0310-bb52-ff3d296db539>
Fri, 1 Dec 2006 20:37:44 +0000 (20:37 +0000)
git-svn-id: svn+ssh://svn/var/repos/curfender@548 bc5cbbab-a4ec-0310-bb52-ff3d296db539

main.cpp

index e240cc1..25a62fb 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -5,6 +5,7 @@
 
 int score;
 int lives;
+int level;
 
 int drawlocation = 0;
 int pod_in = 0;
@@ -203,7 +204,7 @@ int draw_object(game_object object, int drawlocation){
 
 }
 
-void draw_board(int location){
+void draw_board(){
   // mvprintw(row,col,string,vars)
   //top
   mvprintw(0,0,"--------------------------------------------------------------------------------\n");
@@ -233,8 +234,8 @@ void draw_board(int location){
     mvprintw(20,x,"<=>");
     count--;
   };
-  //Location
-  mvprintw(22,1,"Location:%3d", location);
+  //Level
+  mvprintw(22,1,"Level:%8d", level);
   
 }
 
@@ -471,6 +472,8 @@ game_object pod9;
   int input = 0;
   int podloop = 0;
 
+  int podcount = 0;
+
   cbreak();
   halfdelay(1);
   noecho();
@@ -479,7 +482,7 @@ game_object pod9;
     
     clear();
     // Draw board
-    draw_board(player.y);
+    draw_board();
 
     //process object motion
     player = process_motion(player, player);
@@ -589,6 +592,14 @@ game_object pod9;
     //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