Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PBTShot01DrawIam:
- ;Draws a 8x16 arc
- ;fires on of 3 sprites based off of the angle in the counter
- ;E=Y D=X normalized (00yy yyyy,00xx xxxx)
- ;IX=spritelocation
- ; Is this a piercing attack? i dont think it is. ask teh dragon later
- ld hl,0
- add hl,sp ; save the current stack pointer into hl
- ld sp,(itemp1) ; restores the stack so we can use it
- push hl ; push it onto the stack for safe keeping
- ex af,af' ; exchange and save flags
- push af ; why i have no bloody clue
- ;ex af,af'
- ld a,d ; ld a with X
- add a,6 ; Increase a with 6 ; we do this so that the 8x16 sprite is over the center of
- ld d,a ; load it back into D ; the dragon not the far left
- push de ; save to stack
- sub 8 ; move it over so that the main point is at the top of the arc but we draw it from the side like
- ; the sprite is oriented
- ld d,a ; load the modified x back into a
- ld ix,WaveGfxDat ; load ix with sprite pointer...
- call DrawClippedSpriteGeneral ;do shit that is in teh lable
- pop de ; restore x and y (even though y is unmodified)
- ld ix,wavegfxdat+8 ; load ix with second half of wave sprite
- call drawclippedspritegeneral ;.. do i really need to spell this out for you
- ;ex af,af'
- pop af ;restore af
- ex af,af' ; ^
- pop hl
- ld sp,hl ; restore previous stack
- jp PBTMainDrawRet
Advertisement
Add Comment
Please, Sign In to add comment