| Prev: 66D0 | Up: Map | Next: 6704 |
66EE: Update bridge Y position during scroll
|
Used by the routine at advance_scroll.
|
||||
|
Adjusts the bridge's Y position (state_bridge_y_position) based on current scrolling. If no bridge exists (Y=0), returns immediately. If the bridge scrolls off the bottom of the screen (Y AND $88 == $88), clears it.
|
||||
| update_bridge_scroll | 66EE | LD A,($5F6E) | If no bridge, return; otherwise advance bridge Y position. | |
| 66F1 | CP $00 | |||
| 66F3 | RET Z | |||
| 66F4 | LD B,A | |||
| 66F5 | CALL advance_object | If bridge scrolled off screen, call clear_bridge to clear it. | ||
| 66F8 | AND $88 | |||
| 66FA | CP $88 | |||
| 66FC | LD A,B | |||
| 66FD | CALL Z,clear_bridge | Store updated bridge Y and return. | ||
| 6700 | LD ($5F6E),A | |||
| 6703 | RET | |||
| Prev: 66D0 | Up: Map | Next: 6704 |