![]() |
Routines |
| Prev: 49224 | Up: Map | Next: 49257 |
|
Sets the adjustment to the speed of the player along the y axis, to bring the player a step closer to the middle line of an arch that goes east and west. Nothing is done if the sprite of the player is flipped.
|
||||||||||
|
Skip if flipped or already in the middle.
|
||||||||||
| NudgePlayerEastWest | 49232 | BIT 6,(IY+7) | Jump to NudgePlayerNorthSouth_Done if the player is flipped. | |||||||
| 49236 | JR NZ,NudgePlayerNorthSouth_Done | |||||||||
| 49238 | LD A,(IX+10) | Fetch the y of the doorway middle. | ||||||||
| 49241 | CP (IY+2) | Jump to NudgePlayerNorthSouth_Done if the player is in the middle. | ||||||||
| 49244 | JR Z,NudgePlayerNorthSouth_Done | |||||||||
|
Step toward the middle along y.
|
||||||||||
| 49246 | LD A,1 | Set A to 1. | ||||||||
| 49248 | JR NC,NudgePlayerEastWest_Set | Jump to NudgePlayerEastWest_Set if carry is not set. | ||||||||
| 49250 | NEG | Negate A. | ||||||||
| NudgePlayerEastWest_Set | 49252 | LD (IY+15),A | Set the y-speed adjustment of the player. | |||||||
| 49255 | JR NudgePlayerNorthSouth_Done | Jump to NudgePlayerNorthSouth_Done. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: 49224 | Up: Map | Next: 49257 |