![]() |
Routines |
| Prev: A127 | Up: Map | Next: A14D |
|
Draws the three items that the player is carrying in the side panel, one for each slot of the inventory at Inventory_Slot1. The slots are drawn 10 pixels apart.
|
||||||||
| DrawInventory | A13B | LD DE,$2CC8 | D=2C (the Y position) and E=C8 (the X position) of the first slot. | |||||
| A13E | LD HL,$5E30 | Point HL at the first slot of the inventory at Inventory_Slot1. | ||||||
| A141 | LD B,$03 | B=03 (the number of slots). | ||||||
| DrawInventory_Loop | A143 | CALL DrawInventoryItem | Draw the item in the slot with DrawInventoryItem. | |||||
| A146 | LD A,E | Fetch the X position of the slot. | ||||||
| A147 | ADD A,$10 | Add 10 to move on to the X position of the next slot. | ||||||
| A149 | LD E,A | Keep the X position of the next slot in E. | ||||||
| A14A | DJNZ DrawInventory_Loop | Decrease the slot counter by one and loop back to DrawInventory_Loop until all of the slots are drawn. | ||||||
| A14C | RET | Return. | ||||||
| Prev: A127 | Up: Map | Next: A14D |