![]() |
Routines |
| Prev: 56959 | Up: Map | Next: 57081 |
|
Used by the routine at 50218.
|
||||
|
An interactable object has been found in the room Maroc is entering.
This routine:
|
||||
| 57015 | LD A,4 | Graphic type = 4 (interactable object) | ||
| 57017 | LD (60227),A | |||
| 57020 | LD A,(60292) | Data set number for interactable object - from object table at 29551 | ||
| 57023 | LD (60230),A | |||
| 57026 | LD HL,(60290) | Address pointer to the beginning of this interactable object's data set | ||
| 57029 | LD (60228),HL | |||
| 57032 | LD A,(60294) | Horizontal (X) position of object in room, in 4-pixel (half-character) steps | ||
| 57035 | LD (60232),A | |||
| 57038 | LD A,(60295) | Vertical (Y) position of object in room, in pixels, from top of room | ||
| 57041 | LD (60234),A | |||
| 57044 | LD A,64 | 64 signifies item in 'standard' room (254/255 for tunnel room items) | ||
| 57046 | LD (60235),A | |||
| 57049 | LD DE,0 | Set vertical and horizontal speed of item to zero | ||
| 57052 | LD (60236),DE | |||
| 57056 | LD (60237),DE | |||
| 57060 | LD A,(60296) | Copy item properties byte into data buffer | ||
| 57063 | LD (60238),A | |||
| 57066 | LD A,1 | Graphic address frame offset = n-1 (= 0, no offset) | ||
| 57068 | LD (60240),A | |||
| 57071 | LD A,(60304) | Graphics number for this item (offset for address pointer in graphics table starting at 38851) | ||
| 57074 | CALL 57538 | Set up graphics for this interactable object | ||
| 57077 | CALL 57520 | Copy item data buffer (60227) into a data set at 31744 | ||
| 57080 | RET | |||
| Prev: 56959 | Up: Map | Next: 57081 |