Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NOTFRESH
- LutHandlerStart:
- ;Flow
- ;Decrement timer
- ;Check for z or c
- ;If z move to next
- ;if c move to follow player
- ;else increment based on type
- ; assume nothing is loaded as we may jump back here. later. can be removed if needed tho
- ld hl,-3
- add hl,sp
- ld a,(hl) ; ld a with flags
- ld b,a save in b
- rla \ rla
- dec a ; shift dec
- add a,a \ add a,a ; shift back
- or b
- jr C,FollowPlayer
- jr z,IncLut
- ld (hl),a ; save back into flags
- MoveBulletBasedOnLutAngle:
- ;Increase the bullet based on the lut angle.
- ; pre increment/saving executes with old
- ; First load angle
- ; Check for inc val
- ; if val get mult and mult
- ; save back and execute
- ld e,(hl) ; flags in E
- dec hl ; point hl to user
- ld c,(hl) ; put angle into C
- ld a,(ix) ; ld a with incdec
- rlca \ rlca \ and %00000011 ; save incdec in %00000011
- jr z,++_ ; if its zero skip the crap
- add a,a ; mult by 2
- bit 0,E ; if set to mult by 4 mult by 4
- jr z,_ ; else skip it
- add a,a
- _:
- add a,c ; if its zero just add it anyway
- ld (hl),a ; save back
- jp moveang ;inputs may vary juggle for that later. for now assuming c
- IncLut:
- ld a,(pTemp1)
- inc a
- inc a
- ld (pTtemp1),a ; inc to next slot
- dec hl
- xor a
- ld (hl),a ;zero so its a fresh init
- jp lutinit
Advertisement
Add Comment
Please, Sign In to add comment