![]() |
Routines |
| Prev: 44547 | Up: Map | Next: 44595 |
|
The handler for the ghost of a valve (objects 104 to 107). It hovers over the socket which comes before it in the table of objects, and is created by HandleSocket. It retires itself if there are special objects in the room. It stays for a couple of frames in IX+16, then changes into its sparkle form (see HandleValveGhostSparkle).
|
||||||||
|
Hover over the socket, then become a sparkle.
|
||||||||
| HandleValveGhost | 44567 | CALL SetPixelAdjustments_Valve | Call SetPixelAdjustments_Valve. | |||||
| 44570 | CALL TestValvesInPlay | Call TestValvesInPlay. | ||||||
| 44573 | JP NZ,RetireObject_Retire | Jump to RetireObject_Retire if there are special objects in the room. | ||||||
| 44576 | LD A,(IX-29) | Fetch the height of the socket. | ||||||
| 44579 | ADD A,13 | Add 13. | ||||||
| 44581 | LD (IX+3),A | Set the height of the ghost. | ||||||
| 44584 | DEC (IX+16) | Return if there are frames left. | ||||||
| 44587 | RET NZ | |||||||
| 44588 | SET 2,(IX+0) | Set bit 2 of the sprite number. | ||||||
| 44592 | JP SetWipeAndDrawFlags | Jump to SetWipeAndDrawFlags. | ||||||
| Prev: 44547 | Up: Map | Next: 44595 |