home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 8 / amigaformatcd08.iso / screenplay / shareware / yagg / developer.eng < prev    next >
Text File  |  1996-07-05  |  3KB  |  104 lines

  1. Follow these instruction to create your own battlefields:
  2.  
  3. Draw in the middle of a squared sheet xy axis:
  4.  
  5.              y^
  6.               |
  7.               |
  8.               |
  9.               |
  10.               |
  11.               |
  12. --------------+------------->
  13.               |              x
  14.               |
  15.               |
  16.               |
  17.               |
  18.               |
  19.  
  20. ...and now draw the battlefield as a set of rectangles.
  21. Now you have to compile a list with the coordinates of all the rectangles.
  22. For each rectangle you must annotate (in the exact order!) the coordinates
  23. of the upper left corner and THEN then lower right ones. (x1<x2 and y1>y2).
  24. Don't make errors if you don't like gurus :-))
  25. In addiction you should divide the blocks to get the larger rectangle as
  26. you can, e.g.:
  27.  
  28.  
  29.         a--b-----------
  30.         |             |
  31.         d  -----------c
  32.         |  |
  33.         |  |  (what you have drawn)
  34.         |  |
  35.         |  |
  36.         ---e
  37.  
  38. You can choose the two rectangle a,e  and  b,c (Pic1), but it is better to
  39. choose  a,c  and  d,e (Pic2) because the Blitter will work faster.
  40.  
  41.         a--b-----------
  42.         |  |          |
  43.         |  -----------c
  44.         |  |
  45.         |  |  (Pic1)
  46.         |  |
  47.         |  |
  48.         ---e
  49.  
  50.         a--------------
  51.         |             |
  52.         d-------------c
  53.         |  |
  54.         |  |  (Pic2)
  55.         |  |
  56.         |  |
  57.         ---e
  58.  
  59. The you must multiply all the taken coordinates by a constant to make your
  60. level large enough.  The maxinum width and heigh of a map is 8000, but I
  61. suggest you to make them smaller then 3500.
  62.  
  63. This is the source code of FourL battlefield:
  64.  
  65. ;--------------------------------------------------------------------
  66.     ORG    0
  67.     File    "Arena.FourL"
  68.  
  69. Ver:    Dc.w  0
  70. UltOst:    Dc.w  17
  71. Starts:    Dc.w  -830,700,  830,-700, -1050,-560,  1050,560
  72.  
  73. Arena:    Dc.w  -1330,1190,980,1120,    -1330,1120,-1260,-770
  74.     Dc.w  910,1120,980,840,        910,840,1330,770
  75.     Dc.w  910,840,1330,770,        -630,742,-588,490
  76.     Dc.w  -882,490,-588,448,    350,532,672,490
  77.     Dc.w  1260,776,1330,-1120,    630,490,672,210
  78.     Dc.w  -70,70,70,-70,        -672,-210,-630,-490
  79.     Dc.w  -672,-490,-350,-532,    588,-448,882,-490
  80.     Dc.w  588,-490,630,-742,    -1330,-770,-910,-840
  81.     Dc.w  -980,-840,-910,-1120,    -980,-1120,1330,-1190
  82. ;--------------------------------------------------------------------
  83.  
  84. Ver:    Must be 0
  85.  
  86. UltOst: Number of rectangles - 1
  87.  
  88. Starts: Coordinates of the start positions of all 4 ships
  89.  
  90. Arena:  The coordinates of the rectangles:
  91.  
  92.     Dc.w x1,y1,x2,y2,        x1,y1,x2,y2
  93.               ^^^^^^^^^First rectangle,  ^^^^^^^^^2nd rectangle, and so on
  94.  
  95.  
  96. Finally you have to compile the source with an assembly compiler (I used
  97. PhxAss which can be found in Aminet) and put the result file in
  98. YaggArenas/ directory.
  99. I decided to not release documetation on how to create new ships.  If you
  100. want You can send me a drawing of a new ship and I'll add it to YaggShips/
  101. dir.  A ship is made with a sigle polygon.
  102.  
  103. That's all folks !
  104.