Geekboy

Untitled

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