//Author: Josh Stinson
//Class: Pudt 1203 Creative Computing
  //Mid-term Project Zombie inspired first person shooter.
  String currentPage;
  int count = -18;
  PImage intro;
  PImage Weapon;
  PImage Gun;
  PImage img1;
  PImage Entry;
  PImage Entry2;
  PImage Entry3;
  PImage Entry4;
  PImage Dining1;
  PImage Dining2;
  PImage Dining3;
  PImage Stairs1;
  PImage Stairs2;
  PImage Bottom;
  PImage Exit;
  PImage End;
  void setup()
  
  {
 
    size(645, 425);
    currentPage = "Home Page";
  intro = loadImage("page2.jpg");
  Weapon = loadImage("Weapon menu copy.jpg");
   Gun = loadImage("gun.jpg");
   Entry = loadImage("Entry way1.jpg");
   Entry2= loadImage("entry way2.jpg");
   Entry3= loadImage("entry way3.jpg");
   Entry4= loadImage("Entry way4.jpg");
   Dining1= loadImage("dining1.jpg");
   Dining2= loadImage("dining2.jpg");
   Dining3= loadImage("dining3.jpg");
   Stairs1= loadImage("stairs1.jpg");
   Stairs2= loadImage("stairs2.jpg");
   Bottom= loadImage("bottom.jpg");
   Exit= loadImage("Exit1.jpg");
   End= loadImage("End1.jpg");
    //Home Page
    
    img1 = loadImage("Home Page.jpg");
    image(img1, 0, 0);
  }
  void draw()
   
     {
    
    //begin start screen
    //Game Instructions. Click to start game:
   {
    
       fill(200, 40, 50);
       textSize(24);
       text("Click Screen", 240, 400);
       text("To Meet Your Fate", 220, 425);
    if(count >= -17 && count < 7){
       fill(0, 0, 0);
       rect(180, 170, 290, 170);
       
       fill(200, 50, 60); //
       textSize(24);
       text("GET OUT ALIVE!", 240, 200); 
       textSize(18);
       
       fill(200, 50, 60); //Storyline
       text("Instructions:", 270, 225);
       text("In a zombie apocolypse, you are", 185, 245);
       text("a lone survivor.",  270, 265);
       text("Armed with your will to survive,", 195, 290);
       text("you have to battle your way out ", 190, 310);
       text("of this haunted hell.", 245, 330);
       fill(200, 40, 50);
       textSize(24);
       text("Click Screen", 240, 400);
       text("To Meet Your Fate", 220, 425);
   noCursor();
   noStroke();
    }
     }
    //end start screen
    
     //start TURN BACK Game
    //if the count is less than 7, the game starts. 
    {
    if(count >= -16  && count < 7){ 
     image(intro,-638, -328);
      
      
      noStroke();
      
      } 
   //Loads Weapon Menu
   if(count >= -15  && count < 7){ 
     image(Weapon, 0, 0);
       textSize(24);
       text("Select Weapon", 240, 400);
       cursor(CROSS);
   }
  //Highlights gun selection
   if(count >= -14  && count < 7){ 
     image(Gun, 82, 123);
      fill(255,0,0,127);
      rect(81, 120, 80, 50);
     fill(0);
     rect(235, 370, 220, 40);
      fill(200, 40, 50);
       textSize(24);
       text("HandGun Selected", 240, 400);
  //Starts Game Sequence             
  }
  if(count >= -13  && count < 7){ 
     image(Entry, 0, 0);
     cursor(CROSS);
      fill(200, 40, 50);
       textSize(24);
       text("Aim for the Head!", 240, 400);
       
  }
   if(count >= -12  && count < 7){ 
     image(Entry2, 0, 0);
     cursor(CROSS);
      fill(200, 40, 50);
       textSize(24);
       text("Nice Shot!", 240, 400);
   }
   
   if(count >= -11  && count < 7){ 
     image(Entry3, 0, 0);
     cursor(CROSS);
      fill(200, 40, 50);
       textSize(24);
       text("One More!", 240, 400);
   }
  if(count >= -10  && count < 7){ 
     image(Entry4, 0, 0);
     cursor(CROSS);
      fill(200, 40, 50);
       textSize(24);
       text("Surprise!", 240, 400);  
  }
    }
     }
  void mouseClicked(){

    //The click counter starts at 0 and the game starts
    if(mouseX>0 && mouseX<800 && mouseY>0 && mouseY<800 && count<0){
        count++;   
   
    
  }
  
  }

