Prev: 7051 Up: Map Next: 708E
706C: Render balloon
Renders a balloon enemy sprite at the specified X position. Balloons are 2-tile wide animated objects that float above the river. Unlike other enemies, balloons disable collision detection during rendering.
  • Disables collision mode via state_collision_mode (allows plane to pass through during render)
  • Animated sprite with $20 byte frames at sprite_balloon
  • Dimensions: 2 tiles wide (16px) × 16 pixels tall
  • Attributes: $0E (PAPER RIVER, INK BALLOON)
Input
E X position of balloon
render_balloon 706C LD B,$00 BC = (0, E): set X position in BC for object entry.
706E LD C,E
706F LD HL,$8972 Load balloon sprite sprite_balloon, set COLLISION_MODE_NONE to state_collision_mode.
7072 LD A,$00
7074 LD ($5EF5),A
7077 PUSH HL Push sprite addr, add balloon to viewport_slots objects set, pop and call setup_object_position.
7078 LD HL,$5F00
707B CALL add_object_to_set
707E POP HL
707F CALL setup_object_position
7082 LD BC,$0020 Render sprite: frame size=$20, width=2, height=16px, attributes=$0E.
7085 LD A,$02
7087 LD DE,$100E
708A CALL render_sprite
708D RET
Prev: 7051 Up: Map Next: 708E