// ****************************************************************************
//
// Logic 1: Opening/intro
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);
  status.line.off();
  prevent.input();
  program.control();

  print("Nagivate Pinkun through the maze to find the glowing gem.");
  print("Bushes and logs will block Punkun's way and you will have to find another way.");
  show.pic();
  display(10,1,"             Pinkun Maze");
  display(22,14,"Version 0.1");
}

if ((have.key() ||
     controller(key_joystick))) {
  set(menu_enabled);
  clear.lines(22, 24, 0);
  stop.motion(ego);
  reset(disable_game_functions);

  index = 0;
  call(10);
  new.room(2);
}

return();