Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; This attack sends a single shot out in a arch with the shape of
- ; _----_
- ; | |
- ; \ /
- ; \ /
- ; \/
- ; X
- ; where X is nanami
- ; it follows this path unless 2nd is released in which it takes the most linear path back to nanmi from its current
- ; position
- ;
- ; This attack also starts the arc in a different direction based on which direction you were traveling last
- ;
- ; This has a look up table at Nanami45LUT that is aligned on the LUT page
- ; This LUT contains the offsets from the firing position of nanami that makes it have this proper arc
- ; by doing it this way its much faster and causes less of a headache.
- ; When second is released we will be having the bullet come back to nanami this will be done with a arctan look up.
- ; going to see if i cant get away with reusing some of iambians enimy routines here have to lookinto the track function
- ; - 5 minutes later -
- ; we can use the call r.arctan to get the angle and return it in C
- ;
- ; TTl of bullet.
- ; i have no clue how to do this other than doing blatant collision detection with your self ask iambian
- ; LUT is organized as such
- ; 2 bytes per pair
- ; a pair consists of a counbt and a angle
- ; so
- ; .db 20,45
- ; would move the bullet at a 45D angle for 20 game cycles
Advertisement
Add Comment
Please, Sign In to add comment