// ****************************************************************************
//
// Logic 2: First room (Foyer)
//
// ****************************************************************************
#include "defines.txt"
if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(60);
  // The next 6 lines need only be in the first room of the game
  if ((prev_room_no == 1 ||    // just come from intro screen
      prev_room_no == 0)) {    // or just started game
    position(ego,130,80);
    status.line.on();
    accept.input();
  }
  if (prev_room_no == 3) {
    position(ego,14,109);
 }
 if (prev_room_no == 4) {
    position(ego,95,160);
 }
  draw(ego);
  show.pic();
   print("You are standing in a spacious hall, splendidly decorated in red"
            "and gold, with glittering chandeliers overhead. The entrance from"
            "the street is to the north, and there are doorways south  and west.");
}
if (said("look")) {
  print("You are standing in a spacious hall, splendidly decorated in red"
            "and gold, with glittering chandeliers overhead. The entrance from"
            "the street is to the north, and there are doorways south and west.");
}
if (isset(ego_touching_signal_line)) { 
  get.posn(ego,v43,v44);
   if(v43>90){
     print("You've only just arrived, and besides, the weather outside"
            "seems to be getting worse.");
     v44=80; 
     move.obj.v(ego,v43,v44,4,f16);
   }
   else{
     new.room(3);
   }
}
if (ego_edge_code == bottom_edge) {   // ego touching bottom edge of screen
  new.room(4);
}
return();
