![]() |
Routines |
| Prev: DD79 | Up: Map | Next: DDF2 |
|
Used by the routine at LookForGround.
Ends the scroll at the start of a life. It clears the flag at ScrollInFlag and makes the tiles for the current position again. It sets the map column and row, the position and the speeds of the ship from the position of the view, moves the ship with MoveObject and then goes to the sound routine at 71F0.
|
||||
| FinishScrollIn | DDBF | POP BC | Bring BC back off the stack. | |
| DDC0 | XOR A | Clear A. | ||
| DDC1 | LD ($5C3C),A | Update the scroll-in flag. | ||
| DDC4 | LD HL,($CE57) | Fetch the word at MapPosition into HL. | ||
| DDC7 | CALL MakeTiles | Call MakeTiles. | ||
| DDCA | LD IX,$C8E5 | The ship. | ||
| DDCE | LD HL,($CE57) | Fetch the word at MapPosition into HL. | ||
| DDD1 | LD (IX+$01),L | Write L to offset 01 of IX. | ||
| DDD4 | LD (IX+$04),H | Write H to offset 04 of IX. | ||
| DDD7 | LD HL,($CE45) | Fetch the word at PositionAcross into HL. | ||
| DDDA | LD (IX+$02),L | Write L to offset 02 of IX. | ||
| DDDD | LD (IX+$05),H | Write H to offset 05 of IX. | ||
| DDE0 | LD (IX+$07),$58 | Store 58 at offset 07 of IX. | ||
| DDE4 | LD A,(IX+$1E) | Read offset 1E of IX. | ||
| DDE7 | SUB $17 | Subtract 17 from A. | ||
| DDE9 | LD (IX+$09),A | Write A to offset 09 of IX. | ||
| DDEC | CALL MoveObject | Call MoveObject. | ||
| DDEF | JP PlayArrivalSound | Jump to PlayArrivalSound. | ||
| Prev: DD79 | Up: Map | Next: DDF2 |