Geekboy

Untitled

Apr 7th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;=============================================================================
  2. ;                             Variable explination
  3. ;  Charweapondat  %76543210
  4. ;                  0000000D
  5. ;  D Direction of bullet travel
  6. ;
  7. ; LUT    
  8. ;   Byte one  bits 6 and 7 containe a 2 bit multiplied offset to be applied to the angle in byte 2
  9. ;             IF these are 0 the offset is not applied
  10. ;             bits 5-0 contain a count that is the ttl of the table entry
  11. ;   byte 2    bit one contains whether the multiplied offset increments or decrements the angle
  12. ;             the remaining bits are a angle with the value of 0-127. this will be multiplies by 2 before
  13. ;             being applied
  14. ;
  15. ;       USER = angle data THIS can go over 172 so dont touch it
  16. ;       Flag = first 5 bits are the counter
  17.                bit 1 is the focus bit
  18.                Bit 0 is the multiplier bit
  19.                      1 = x4
  20.                      0 = x2
  21.                 This is set in the bullet create routine.
  22. ;       This routine will read from the lut on every pass to get the offset information. slow but easier
Advertisement
Add Comment
Please, Sign In to add comment