home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1097 / AMOSLIST / Cafeeng4.lha / Raycast.doc < prev    next >
Encoding:
Text File  |  1997-10-14  |  1.5 KB  |  36 lines

  1. ' Raycasting docs
  2. '
  3. ' Here's some documentation on how the engine is written-constructed
  4. ' to help you along and not spend forever trying to figure it out.
  5. ' Anything that's not documented from Rems and comments from within
  6. ' the code is in here (or should be). You can load this directly into
  7. ' AMOS if you want, to save you the trouble from flipping screens.
  8. '
  9. '     __ __                              \
  10. '    |__|__|  > 64 across                 \ _ _ _ _ _ _ _ _  
  11. '    |__|                        Look at   \1|2|3|4|5|6|7|8.. ->
  12. '                                diagram   /_|_|_|_|_|_|_|_.. ->
  13. '     \/        64 down          at left  /|_|_|_|_|_|_|_|_.. ->
  14. '                                        /
  15. '
  16. ' The entire map is 64 squares by 64 sqaures (64x64.)
  17. ' 64 squares across, 64 squares down, for a total of 4096.
  18. '
  19. '    ________
  20. '   | 64 <-> |    Each map square is 64 units across
  21. '   |        |    and 64 units down, for a total of
  22. '   |     /\ |    4096 units inside each square apiece.
  23. '   |  64 \/ |
  24. '   |________|    <- Individual map square
  25. '
  26. '
  27. '        | 270    This is the way the angles are set up.
  28. '  180 --+-- 0    0 is East (right), 90 is South (down),
  29. '     90 |        180 is West (left), and 270 is North (up).
  30. '
  31. '
  32. ' This should about do it. I think I've covered everything you need
  33. ' to know to get started. As I said, everything else is within the
  34. ' code, so, everyone, help yourself, and thanks again for the help.
  35. '
  36. ' Adam Parrott, work: parrottsoft@usa.net, personal: parrotta@usa.net