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.
  • Adds fuel station to viewport_slots active objects set
  • Sprite located at sprite_fuel (single frame, no animation)
  • Dimensions: 2 tiles wide (16px) × 25 pixels tall
  • Attributes: $0B (PAPER RIVER, INK FUEL)
Input
E X position of fuel station
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