Geekboy

Untitled

Apr 9th, 2013
64
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. ;  Since nanami can have a max of 2 bullets on teh screan at once.
  7. ;
  8. ; LUT    
  9. ;
  10. ;   Byte one  bits 6 and 7 containe a 2 bit multiplied offset to be applied to the angle in byte 2
  11. ;             IF these are 0 the offset is not applied
  12. ;             bits 5-0 contain a count that is the ttl of the table entry
  13. ;   byte 2    bit one contains whether the multiplied offset increments or decrements the angle
  14. ;             the remaining bits are a angle with the value of 0-127. this will be multiplies by 2 before
  15. ;             being applied
  16. ;
  17. ;       USER = angle data THIS can go over 172 so dont touch it
  18. ;       Flag = first 5 bits are the counter
  19.                bit 1 is the focus bit
  20.                Bit 0 is the multiplier bit
  21.                      1 = x4
  22.                      0 = x2
  23.                 This is set in the bullet create routine.
  24. ;       This routine will read from the lut on every pass to get the offset information. slow but easier
  25. ; There are 2 16bit pointers in ram. these point to the start of the LUT and will be incremented in the routine.
  26. ;this is to make access faster and less of a headache
  27. ;pTemp1 and pTemp3 respectively.
Advertisement
Add Comment
Please, Sign In to add comment