Advertisement
mixster

mixster

Jan 3rd, 2010
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.09 KB | None | 0 0
  1. var poi: TPoint;
  2.     chooselines, chooselevel: integer;
  3. procedure MenuDraw(Sender: TObject);
  4. var //mainM: array [0..2] of array [0..2] of boolean;
  5.    // key: array of char;
  6.     i: integer;
  7.     str: string;
  8.     b: Boolean;
  9. begin
  10.   //Draw Menu
  11.   str := 'wasdp' + #13;
  12.   for i := 1 to Length(str) do
  13.     if IsKeyDown(str[i]) then
  14.     case paused of
  15.       true: begin end;
  16.       false: begin
  17.         b := True;
  18.         case i of
  19.           1: if Poi.y > 0 then
  20.                  dec(poi.x);
  21.           2: if Poi.x > 0 then
  22.                  dec(poi.x);
  23.           3: if Poi.y < 3 then
  24.                  inc(poi.x);
  25.           4: if Poi.x < 3 then
  26.                  inc(poi.x);
  27.           6: begin
  28.                  if poi.x < 3 then
  29.                    chooselevel := 3 * poi.y + poi.x;
  30.                  writeln(chooselevel);
  31.                  writeln(poi.x);
  32.                  writeln(poi.y);
  33.                  writeln('');
  34.                end;
  35.           else
  36.             b := False;
  37.             end;
  38.           if b then Writeln('Did something -> ' + IntToStr(i));
  39.         end;
  40.     end;
  41. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement