home *** CD-ROM | disk | FTP | other *** search
/ Seeker / Seeker.iso / files_w / 3d_dun.dir / 00077.ls < prev    next >
Encoding:
Text File  |  1994-12-01  |  960 b   |  31 lines

  1. on mouseUp
  2.   global map, posx, posy, forwardmap, leftmap, backwardmap, rightmap
  3.   set posykeep to posy
  4.   if the castNum of sprite 20 = the number of cast "N" then
  5.     set map to rightmap
  6.     set the castNum of sprite 20 to the number of cast "E"
  7.     set posy to 33 - posx
  8.   else
  9.     if the castNum of sprite 20 = the number of cast "E" then
  10.       set map to backwardmap
  11.       set the castNum of sprite 20 to the number of cast "S"
  12.       set posy to 23 - posx
  13.     else
  14.       if the castNum of sprite 20 = the number of cast "S" then
  15.         set map to leftmap
  16.         set the castNum of sprite 20 to the number of cast "W"
  17.         set posy to 33 - posx
  18.       else
  19.         if the castNum of sprite 20 = the number of cast "W" then
  20.           set map to forwardmap
  21.           set the castNum of sprite 20 to the number of cast "N"
  22.           set posy to 23 - posx
  23.         end if
  24.       end if
  25.     end if
  26.   end if
  27.   set posx to posykeep
  28.   showviews()
  29.   go("loop")
  30. end
  31.