Geekboy

Untitled

Apr 10th, 2013
138
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  %MMcccccc
  11.                   MM = 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.     ;             c = contain a count that is the ttl of the table entry
  14.     ;   byte 2    %Saaaaaaa
  15.     ;             S = contains whether the multiplied offset increments or decrements the angle
  16.     ;             A = angle with the value of 0-127. this will be multiplies by 2 before
  17.     ;             being applied
  18.     ;
  19.     ;       USER = angle data THIS can go over 172 so dont touch it
  20.     ;       Flag = %CCCCCFM
  21.                    C =  Counter
  22.                    F = focus bit
  23.                    M = Multiplier bit
  24.                          1 = x4
  25.                          0 = x2
  26.                     This is set in the bullet create routine.
  27.     ;       This routine will read from the lut on every pass to get the offset information. slow but easier
  28.     ; There are 2 16bit pointers in ram. these point to the start of the LUT and will be incremented in the routine.
  29.     ;this is to make access faster and less of a headache
  30.     ;pTemp1 and pTemp3 respectively.
Advertisement
Add Comment
Please, Sign In to add comment