home *** CD-ROM | disk | FTP | other *** search
/ AMOS PD CD / amospdcd.iso / 326-350 / apd336 / amosdriver.doc < prev    next >
Text File  |  1991-10-08  |  1KB  |  39 lines

  1.                             AMOS Gun Driver
  2.         Written by David Phillips for Trojan Products
  3.  
  4. The gun driver returns the screen x & y co-ordiantes 
  5.  
  6. The programs contains 5 procedures
  7.  
  8. i)   Procedure CalibrateGun
  9. ii)  Procedure GunDriver
  10. iii) Procedure Trigwait
  11. iv)  Procedure Trigger
  12. v)   Procedure BeamPos
  13.  
  14. i)Procedure CalibrateGun
  15.          The gun needs correct calibration or the position displayed may not
  16.   be exactly where you were aiming at.This is for 2 reasons
  17.     a)Every computer/gun/TV combination have different timings due to
  18.            different component tolerances.
  19.          b)Every individual holds the gun at different angles
  20.     
  21. ii)Procedure GunDriver
  22.      The important bit!It returns the screen X & Y positions in variables
  23.    MX & MY.
  24.  
  25. iii)Procedure TrigWait
  26.     Waits for trigger to be pressed.Similar to AMOS 'Wait Key' command
  27.  
  28. iv)Procedure Trigger
  29.     This is checked in GunDriver procedure.If the trigger is pulled then
  30.    the program goes to Procedure BeamPos & calculates MX & MY
  31.  
  32. v) Procedure BeamPos
  33.     The Machine code bit.Calculates X & Y .
  34.      N.B. Bank 6 contains the machine code.If you erase it just load 
  35.    'Gun.abk' in this disk's AMOS directory into bank 6
  36.  
  37.      A game demo is also include to help you with game program structure.
  38.             Have fun creating your own gun games.
  39.