![]() |
Routines |
| Prev: B6F0 | Up: Map | Next: B706 |
|
Used by the routine at probe_laser.
A box C wide and B high at the record's world position, tested with test_landscape_at (which moves it 4 pixels left and 4 down for the test, and back). A laser that hits makes a sound (sound_tick).
|
||||||||||||||
| probe_shot | B6F2 | LD C,$18 | 24 wide: test it | |||||||||||
| B6F4 | CALL test_landscape_at | |||||||||||||
| B6F7 | LD A,(scratch_count) | not hit: Z | ||||||||||||
| B6FA | AND A | |||||||||||||
| B6FB | RET Z | |||||||||||||
| B6FC | BIT 7,(IX+$15) | a laser: a tick; NZ | ||||||||||||
| B700 | CALL Z,sound_tick | |||||||||||||
| B703 | OR $01 | |||||||||||||
| B705 | RET | |||||||||||||
| Prev: B6F0 | Up: Map | Next: B706 |