// ****************************************************************************
//
// Logic 72: Underwater Entrance to hidden chamber of horror
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(1);


// Check what room the player came from and position them on the
// screen accordingly here, e.g:
 if (prev_room_no == 82) {
   position(ego,139,20);
 }


   load.sound(12);
  sound(12, sound_flag);

  draw(ego);
  show.pic();
}

if (said("look")) {
  print("You are deep in the artificial night of these Stygian waters.");
}

if (ego_edge_code == horizon_edge) {  // ego touching horizon
  new.room(82);
}

//if (ego_edge_code == right_edge) {    // ego touching right edge of screen
//  new.room(70);
//}

if (ego_edge_code == bottom_edge) {   // ego touching bottom edge of screen
  new.room(76);
}

if (ego_edge_code == left_edge) {     // ego touching left edge of screen
 new.room(71);
}

call (201);

return();