home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
326-350
/
apd336
/
amosdriver.doc
< prev
next >
Wrap
Text File
|
1991-10-08
|
1KB
|
39 lines
AMOS Gun Driver
Written by David Phillips for Trojan Products
The gun driver returns the screen x & y co-ordiantes
The programs contains 5 procedures
i) Procedure CalibrateGun
ii) Procedure GunDriver
iii) Procedure Trigwait
iv) Procedure Trigger
v) Procedure BeamPos
i)Procedure CalibrateGun
The gun needs correct calibration or the position displayed may not
be exactly where you were aiming at.This is for 2 reasons
a)Every computer/gun/TV combination have different timings due to
different component tolerances.
b)Every individual holds the gun at different angles
ii)Procedure GunDriver
The important bit!It returns the screen X & Y positions in variables
MX & MY.
iii)Procedure TrigWait
Waits for trigger to be pressed.Similar to AMOS 'Wait Key' command
iv)Procedure Trigger
This is checked in GunDriver procedure.If the trigger is pulled then
the program goes to Procedure BeamPos & calculates MX & MY
v) Procedure BeamPos
The Machine code bit.Calculates X & Y .
N.B. Bank 6 contains the machine code.If you erase it just load
'Gun.abk' in this disk's AMOS directory into bank 6
A game demo is also include to help you with game program structure.
Have fun creating your own gun games.