Advertisement
Andrey_Mironenko

Untitled

Dec 17th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. procedure arr_over_test;
  2. begin
  3. if test1_x>w1 then test1_x:=temp_w
  4. else
  5. if test1_y>h1 then test1_y:=temp_h
  6. else
  7. if test1_x<0 then test1_x:=temp_w
  8. else
  9. if test1_y<0 then test1_y:=temp_h
  10. else
  11. end;
  12.  
  13. procedure continent;
  14. begin
  15. map[temp_w, temp_h]:=2;
  16. t_wx:= wherex;
  17. t_wy:= wherey;
  18.  
  19. // вверх-вниз V
  20.  
  21. test1_x:= temp_w;
  22. test1_y:= temp_h+1;
  23. arr_over_test;
  24. map[test1_x, test1_y]:=2;
  25.  
  26. test1_x:= temp_w;
  27. test1_y:= temp_h-1;
  28. arr_over_test;
  29. map[test1_x, test1_y]:=2;
  30.  
  31. test1_x:= temp_w+1;
  32. test1_y:= temp_h;
  33. arr_over_test;
  34. map[test1_x, test1_y]:=2;
  35.  
  36. test1_x:= temp_w-1;
  37. test1_y:= temp_h;
  38. arr_over_test;
  39. map[test1_x, test1_y]:=2;
  40.  
  41. // диагональ V
  42.  
  43. test1_x:= temp_w+1;
  44. test1_y:= temp_h+1;
  45. arr_over_test;
  46. map[test1_x, test1_y]:=2;
  47.  
  48. test1_x:= temp_w-1;
  49. test1_y:= temp_h+1;
  50. arr_over_test;
  51. map[test1_x, test1_y]:=2;
  52.  
  53. test1_x:= temp_w+1;
  54. test1_y:= temp_h-1;
  55. arr_over_test;
  56. map[test1_x, test1_y]:=2;
  57.  
  58. test1_x:= temp_w-1;
  59. test1_y:= temp_h-1;
  60. arr_over_test;
  61. map[test1_x, test1_y]:=2;
  62.  
  63. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement