Prev: 7113 Up: Map Next: 7155
7128: Continue ship/helicopter rendering
Updates the object's position in the viewport array and renders the sprite.
operate_ship_or_helicopter_continue 7128 LD HL,($5F60) Load current_slot_ptr, navigate back to current slot, update [X, Y, D] values.
712B DEC HL
712C LD D,(HL)
712D DEC HL
712E LD (HL),B
712F DEC HL
7130 LD (HL),C
7131 LD ($8B0C),BC Store position to object_coordinates, sprite address all_ff to render_sprite_ptr. Get sprite pointer.
7135 LD HL,$82C5
7138 LD ($8B0E),HL
713B CALL ld_enemy_sprites
713E LD BC,$0018 Set frame size=$18, default attributes=$0E.
7141 LD E,$0E
7143 LD A,D If object type is OBJECT_SHIP, load ship attributes via ld_attributes_ship.
7144 AND $07
7146 CP $02
7148 CALL Z,ld_attributes_ship
714B LD A,$03 Render sprite: width=3 tiles, height=8 pixels.
714D LD D,$08
714F CALL render_object
7152 JP operate_viewport_slots
Prev: 7113 Up: Map Next: 7155