home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / WordUp.dxr / Internal_8.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  1.6 KB  |  63 lines

  1. global gsel, currentscope
  2.  
  3. on keyDown
  4.   if not voidp(gsel) then
  5.     ass = the keyPressed
  6.     if "abcdefghijklmnopqrstuvwxyz" contains ass then
  7.       if not voidp(gsel) then
  8.         puppetSound(4, "typeletter")
  9.         if not voidp(the keyPressed) then
  10.           gsel.member = member(the keyPressed)
  11.           gsel.init()
  12.           gsel.proceed()
  13.         end if
  14.       end if
  15.     else
  16.       if keyPressed(BACKSPACE) then
  17.         if currentscope = #across then
  18.           gsel.moveit(#left)
  19.         else
  20.           gsel.moveit(#up)
  21.         end if
  22.       else
  23.         if keyCode() = 127 then
  24.           gsel.member = member("tile1")
  25.           gsel.init()
  26.         else
  27.           if keyCode() = 123 then
  28.             if currentscope = #across then
  29.               gsel.moveit(#left)
  30.             else
  31.               gsel.moveit(#up)
  32.             end if
  33.           else
  34.             if keyCode() = 124 then
  35.               if currentscope = #across then
  36.                 gsel.moveit(#right)
  37.               else
  38.                 gsel.moveit(#ldo)
  39.               end if
  40.             else
  41.               if keyCode() = 126 then
  42.                 if currentscope = #down then
  43.                   gsel.moveit(#up)
  44.                 else
  45.                   gsel.moveit(#left)
  46.                 end if
  47.               else
  48.                 if keyCode() = 125 then
  49.                   if currentscope = #down then
  50.                     gsel.moveit(#ldo)
  51.                   else
  52.                     gsel.moveit(#right)
  53.                   end if
  54.                 end if
  55.               end if
  56.             end if
  57.           end if
  58.         end if
  59.       end if
  60.     end if
  61.   end if
  62. end
  63.