![]() |
Routines |
| Prev: 45803 | Up: Map | Next: 45850 |
|
The handler for a block which is fat at the bottom (object 28). The block is moved with gravity. If it is still moving its x and y speeds are cleared and it makes a sound. Otherwise it is only redrawn if it has been moved. HandleFatTopBlock joins this routine at HandleFatBottomBlock_Move.
|
||||||||
|
Move the block and redraw it if it has changed.
|
||||||||
| HandleFatBottomBlock | 45823 | CALL SetPixelAdjustments | Call SetPixelAdjustments. | |||||
|
This entry point is used by the routine at HandleFatTopBlock.
|
||||||||
| HandleFatBottomBlock_Move | 45826 | CALL SavePosition | Call SavePosition. | |||||
| 45829 | CALL ApplyGravityAndMove | Call ApplyGravityAndMove. | ||||||
| 45832 | CALL TestObjectMoving | Jump to HandleFatBottomBlock_Stop if the block is moving. | ||||||
| 45835 | JR NZ,HandleFatBottomBlock_Stop | |||||||
| 45837 | CALL ComparePosition | Return if the position is the same. | ||||||
| 45840 | RET Z | |||||||
| 45841 | JP SetWipeAndDrawFlags | Jump to SetWipeAndDrawFlags. | ||||||
|
The block is still moving.
|
||||||||
| HandleFatBottomBlock_Stop | 45844 | CALL ClearSpeed | Call ClearSpeed. | |||||
| 45847 | JP PlaySoundAndRedraw | Jump to PlaySoundAndRedraw. | ||||||
| Prev: 45803 | Up: Map | Next: 45850 |