                                                                                         // ****************************************************************************
//
// Logic 19: Just another trail
//
// ****************************************************************************

#include "defines.txt"

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



  if (prev_room_no == 17) {
      position(ego, 142,47);
      }
  else {
      position(ego, 138,142);
      }

  draw(ego);
  show.pic();

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

  reset(done_flag);
}

if (said("look")) {
  print("Just another trail.");
}

if ((said("look","cliff") ||
     said("look","rock"))) {
     print("The amorphous nature of this rock suggests igneous rock.  Was Voodoo Island once a volcano?  Curious.");
     }

if (said("look","trail")) {
    print("Yep...  just a trail.");
    }



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

if (ego_touching_signal_line) { // lower right
  new.room(20);
  }

if (sound_flag) {
    sound(11, sound_flag);
    }

return();