jetpac | Routines |
Prev: 6f5a | Up: Map | Next: 6f86 |
Used by the routine at 6f5a.
|
||||||||
6f70 | ld (hl),$10 | Set first byte to 16: "used" | ||||||
6f72 | inc hl | Laser Y position | ||||||
6f73 | ld de,$5d00 | DE=Jetman object | ||||||
6f76 | ld a,(de) | B=direction in which to draw laser beam, based on Jetman movement action | ||||||
6f77 | ld b,a | |||||||
6f78 | inc de | |||||||
6f79 | ld a,(de) | A=Jetman X position | ||||||
6f7a | and $f8 | |||||||
6f7c | or $05 | |||||||
6f7e | ld c,a | C=laser beam X position | ||||||
6f7f | bit 6,b | Shoot laser right if Jetman is facing right | ||||||
6f81 | jr z,$6fb6 | |||||||
6f83 | sub $08 | else shoot laser beam left | ||||||
6f85 | ld c,a | C=Jetman X position - 8 |
Prev: 6f5a | Up: Map | Next: 6f86 |