home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / POWERMAG / POWER16.MSA / POWER_16 / MAPEDIT.PWR < prev    next >
Text File  |  1985-11-20  |  7KB  |  129 lines

  1.  
  2.  
  3.                MISSING LINK MAP EDITOR.......(EDDY PROGRAM)
  4.  
  5.                           ARTICLE BY DEANO
  6.  
  7.  
  8.    The  EDDY program is used to set up the scrolling maps that  commands 
  9.    like WORLD and LANSCAPE uses.  It works similar to the MAP  accessory 
  10.    that comes with STOS only we have a larger area.
  11.  
  12.    So what does this map look like then?   Well load one of the  example 
  13.    files on the missing link disk and have a look. Try LANDSCAPE.BAS and 
  14.    run  it.  As you can see, pushing the joystick the screen scrolls  up 
  15.    and down.  This screen is made up of a set of blocks called landscape 
  16.    blocks which were made from sprites using the MAKE program.
  17.  
  18.    Lets use EDDY to create our own simple map. Load EDDY and run it. You 
  19.    will  be presented with the editor screen,  this is where our  blocks 
  20.    are  to be placed to build up a scrolling map as in the landscape.bas 
  21.    file.  Press  SPACE  to go to the editor.  From here we  see  various 
  22.    options which we'll look at soon.  But first things first. We need to 
  23.    create  some blocks to make the zone.  So exit from EDDY and load  up 
  24.    the MAKE program, ie: load "make.bas". Run it and enter the STOS disk 
  25.    and select the load sprites option.  Load the file MAP.MBK, this is a 
  26.    sprite bank containing sprites that could be used to make a game like 
  27.    gaunlet.  Following  intructions from either the MAKE document or  my 
  28.    article on the subject which is in one of the STOSSERS.  Convert  the 
  29.    sprites to world blocks making four images of each sprite.  Once  its 
  30.    done, save the file as world blocks under the name of WBLOCK.MBK.
  31.  
  32.    Reload  EDDY,  run it and go to the editor.  Click on the load  world 
  33.    blocks  option and load the newly converted file  (WBLOCK.MBK).  Once 
  34.    this  is  done the blocks will line up along the top of  the  screen. 
  35.    Click on one to select it, then press SPACE to continue.
  36.  
  37.    Note  it  is a good idea to insert a blank space in the  sprite  bank 
  38.    before converting it.  You can now click on this with the right mouse 
  39.    button  to  assign it to that button.  So now if you put a  block  on 
  40.    screen  then you can erase it by placing the mouse pointer over  that 
  41.    block and pressing the right mouse button.
  42.  
  43.    Once  you've clicked on a block to use and pressed SPACE you will  be 
  44.    in the editor window. Place the mouse pointer somewhere and press the 
  45.    left mouse key.  The block appears at that postion.  Click on it with 
  46.    the right mouse button if you've assigned a blank block to it and the 
  47.    block will vanish. Useful if you make a mistake.
  48.  
  49.    Note  that pressing UNDO will exit the program and pressing * on  the 
  50.    number keypad will give you online help. I think this option works on 
  51.    the compiled version only though.
  52.  
  53.    Making  a scrolling map is like making a map with the  map  designer. 
  54.    Just  click  on the left mouse button to place the  block  and  right 
  55.    mouse button to erase it.  Note  that the first block in  your sprite
  56.    bank must be a blank space as EDDY uses this block  to  erase  blocks
  57.     from  screen,  otherwise the map area is  filled  with  these blocks.
  58.    At  the  bottom  of  the screen are the  co-ordinates  of  the  mouse 
  59.    pointer.  Try moving the pointer about and you'll notice that they go 
  60.    further  than normal screen co-ordinates..X 319 Y 199 So as  you  can 
  61.    see.....the map area is larger than the actual screen.
  62.  
  63.    When  making a landscape map then make sure the blocks at the end  of 
  64.    the screen start at X co-ordinate 304, if you go beyond this then the 
  65.    blocks  on  the  right hand side will be cut  off  in  the  landscape 
  66.    routine.  Note  that  due  to a bug in this program  you  can't  load 
  67.    landscape blocks into EDDY so in order to create a landscape map  you 
  68.    must first make your sprites into world blocks,  make the  map,  make 
  69.    the sprites into landscape blocks and use them in your routine.
  70.  
  71.    Note you can actually build up a series of blocks on screen then make 
  72.    a copy of them to paste elsewhere. Lets say you made a small maze and 
  73.    you wanted to place that elsewhere on the map then postion the  mouse 
  74.    at  the top left hand corner of the maze and press F1.  Then  postion 
  75.    the mouse at the bottom right hand corner of the maze and press F2.
  76.  
  77.    You  have  just captured this maze.  Note it works like the  cut  and 
  78.    paste feature on art packages.  If you press F3 then that block  will 
  79.    be erased from memory.  If you wish to paste the maze block somewhere 
  80.    else on the map then postion the mouse pointer where you want it  and 
  81.    press F4. Note that when you cut the block a stream of colour covered 
  82.    it telling you how much of the area was captured.
  83.  
  84.    This  captured  block is known as an area,  and it can be  saved  for 
  85.    future use by pressing F9 to save it to disk.  It can be loaded  back 
  86.    later by pressing F10.  Pressing F5 will fill the screen with  copies 
  87.    of that area.
  88.  
  89.    Pressing  BACKSPACE will fill the whole map with copies of the  first 
  90.    block, useful for clearing the screen if the block is a blank space.
  91.  
  92.    Once  you  have defined your map then you can see it  by  moving  the 
  93.    mouse around.  Once you are happy then press space to go back to  the 
  94.    main menu and you can save it.  There are two save options,  one will 
  95.    save the map as world data and the other as landscape data.
  96.  
  97.    Note that you now have two files.
  98.  
  99.    WBLOCKS.MBK...........the converted sprites we did before.
  100.  
  101.    WDATA.MBK..............the data you saved as world data.
  102.  
  103.    You can now put this map into a routine.
  104.  
  105.    10 key off : hide :curs off : mode 0
  106.    20 load "WBLOCKS.MBK",5 : load "WDATA.MBK",6
  107.    30 a=palt(start(5))
  108.    40 X=0 : Y=0
  109.    50 repeat
  110.    60 if jleft then X=X-4
  111.    70 if jright then X=X+4
  112.    80 if jup then Y=Y-4
  113.    90 if jdown then Y=Y+4
  114.    100 world logic,start(5),start(6),X,Y,0
  115.    110 until X>1200 or X<16
  116.  
  117.    Note  there  is  a resize option which allows  you  to  place  bigger 
  118.    sprites on screen but you're best off keeping them 16x16 as they  fit 
  119.    perfectly on screen.
  120.   
  121.    Well thats it for this article. The best way to learn more about EDDY 
  122.    is to play around with it.  Before I go I'll just say that the  above 
  123.    scrolls a world map.  Try converting your sprites to landscape blocks 
  124.    and  loading  them  into  the routine instead  of  the  world blocks. 
  125.    Remember that these maps only scroll up and down.
  126.  
  127.    This is Deano going........going.......gone.
  128.  
  129.