| Prev: 7046 | Up: Map | Next: 706C |
7051: Render fuel station
|
Renders a fuel station sprite at the specified X position. Fuel stations are static 2-tile wide (16 pixels) objects that the player can fly over to refuel.
|
||||||||
| render_fuel | 7051 | LD B,$00 | BC = (0, E): set X position in BC for object entry. | |||||
| 7053 | LD C,E | |||||||
| 7054 | LD HL,$5F00 | Add fuel station to active objects set. | ||||||
| 7057 | CALL add_object_to_set | |||||||
| 705A | LD HL,$8A86 | Load fuel sprite address sprite_fuel and call setup_object_position to set up screen position. | ||||||
| 705D | CALL setup_object_position | |||||||
| 7060 | LD BC,$0000 | Set sprite parameters: frame size=0, width=2 tiles, height=25 pixels, attributes=$0B. | ||||||
| 7063 | LD A,$02 | |||||||
| 7065 | LD DE,$190B | |||||||
| 7068 | CALL render_sprite | Render fuel station sprite. | ||||||
| 706B | RET | |||||||
| Prev: 7046 | Up: Map | Next: 706C |