![]() |
Routines |
| Prev: 56697 | Up: Map | Next: 56818 |
|
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 29168.
|
||||
| FinishScrollIn | 56767 | POP BC | Bring BC back off the stack. | |
| 56768 | XOR A | Clear A. | ||
| 56769 | LD (23612),A | Update the scroll-in flag. | ||
| 56772 | LD HL,(52823) | Fetch the word at MapPosition into HL. | ||
| 56775 | CALL MakeTiles | Call MakeTiles. | ||
| 56778 | LD IX,51429 | The ship. | ||
| 56782 | LD HL,(52823) | Fetch the word at MapPosition into HL. | ||
| 56785 | LD (IX+1),L | Write L to offset 1 of IX. | ||
| 56788 | LD (IX+4),H | Write H to offset 4 of IX. | ||
| 56791 | LD HL,(52805) | Fetch the word at PositionAcross into HL. | ||
| 56794 | LD (IX+2),L | Write L to offset 2 of IX. | ||
| 56797 | LD (IX+5),H | Write H to offset 5 of IX. | ||
| 56800 | LD (IX+7),88 | Store 88 at offset 7 of IX. | ||
| 56804 | LD A,(IX+30) | Read offset 30 of IX. | ||
| 56807 | SUB 23 | Subtract 23 from A. | ||
| 56809 | LD (IX+9),A | Write A to offset 9 of IX. | ||
| 56812 | CALL MoveObject | Call MoveObject. | ||
| 56815 | JP PlayArrivalSound | Jump to PlayArrivalSound. | ||
| Prev: 56697 | Up: Map | Next: 56818 |