home *** CD-ROM | disk | FTP | other *** search
/ Falcon 030 Power 2 / F030_POWER2.iso / ST_STE / MAGS / STOSBTS1.ARJ / stosbts1.msa / DATA / VERTS.DAT < prev    next >
Text File  |  1987-04-22  |  2KB  |  48 lines

  1. Welcome brothers and sisters to another interesting STOS session with
  2. Eddie, this time its SCROLLING using BLOCKS.
  3.  By using the SCREEN$ command you can easily paste sprites onto
  4. the screen, this is a lot faster than having to do the
  5. following:-
  6. SPRITE 1,X,y,I
  7. REDRAW
  8. PUT SPRITE 1
  9.  
  10. to set up the BLOCKS, you have to first plot the sprite to the
  11. screen, then grab that image data into a SCREEN STRING (SCREEN$),
  12. like this:-
  13.  
  14. SPRITE 1,0,0,1
  15. REDRAW
  16. BL$=SCREEN$(BACK,0,0 TO 16,16)
  17.  
  18. Remember that the SCREEN$ command works on 16-bit boundaries
  19.  
  20. For this routine, all the blocks are 16*16 pixels.
  21.  
  22. The rountine first cuts out the screen blocks, then draws the
  23. first screen, once that is done the computer waits for an input
  24. from the joystick. If the joystick is pulled down then the
  25. program jumps to a subroutine that scrolls the screen up one ROW.
  26.  If the joystick is pushed up then a subroutine scrolls the
  27. screen down 16 pixels and redraws the top ROW.Using this
  28. technique you can create vast playing fields using a few simple
  29. building blocks.
  30.  
  31. To change the map provided you need to use the MAP EDITOR
  32. supplied with STOS Basic (even though its crap!!!)
  33.  
  34. Use 16*16 pixel sprites, unless you alter the code, in which case
  35. use any size sprites you like.
  36.  
  37. The screen data is stored at line 600 onwards, so when you have
  38. designed your map, save it as and ascii file, then reload it
  39. into STOS and delete lines 50000-50003 (very important!!), then
  40. renumber to 600, then copy the new map data into the program
  41. (understand that, no didn't think you would!)
  42.  
  43. Thats all for now, so till next time bye........
  44.  
  45. EB1121990....YEAH.................}
  46.  
  47.  
  48.