| jetpac | Routines | 
| Prev: 6fb2 | Up: Map | Next: 6fc5 | 
| 
 
Once position of Jetman's gun is located, we call the draw laser beam routine. Used by the routine at 6f70.
 
 
  | 
||||||||||||||
| 6fb6 | ld a,(de) | Jetman X position | ||||||||||||
| 6fb7 | and $07 | Checking for any laser beam pixels? | ||||||||||||
| 6fb9 | ld a,c | |||||||||||||
| 6fba | jr z,$6fbe | Increment X position if some laser pixels are set | ||||||||||||
| 6fbc | add a,$08 | |||||||||||||
| 6fbe | add a,$10 | Add 16 and reset bit-0 | ||||||||||||
| 6fc0 | and $fe | |||||||||||||
| 6fc2 | ld c,a | Set return value | ||||||||||||
| 6fc3 | jr $6f86 | Draw laser beam | ||||||||||||
| Prev: 6fb2 | Up: Map | Next: 6fc5 |