![]() |
Routines |
| Prev: B8FC | Up: Map | Next: B936 |
|
Used by the routine at fire.
The shot's world position is the ship's (view_page_column and view_page_row, its record's +1 to +5) and its first move, in +9, is down to the ship's shot line (ship_line) from the ship's bottom line (ship_screen_y). Its speed across is 8 pixels (facing left) or 24 (facing right), for fire to move it ahead of the ship's nose.
|
||||||||
| place_shot | B90A | LD A,(ship_screen_y) | the line, from the ship's bottom line | |||||
| B90D | LD B,A | |||||||
| B90E | LD A,(ship_line) | |||||||
| B911 | SUB B | |||||||
| B912 | LD (IX+$09),A | |||||||
| B915 | LD HL,(view_page_column) | the ship's place in the world | ||||||
| B918 | LD DE,(view_page_row) | |||||||
| B91C | LD (IX+$01),L | |||||||
| B91F | LD (IX+$02),H | |||||||
| B922 | LD (IX+$04),E | |||||||
| B925 | LD (IX+$05),D | |||||||
| B928 | LD (IX+$07),$08 | 8 ahead, or 24 facing right | ||||||
| B92C | BIT 7,(IX+$00) | |||||||
| B930 | RET NZ | |||||||
| B931 | LD (IX+$07),$18 | |||||||
| B935 | RET | |||||||
| Prev: B8FC | Up: Map | Next: B936 |