Prev: 90D6 Up: Map Next: 91A1
9175: Display planet
Used by the routines at stage_completed, next_stage and start_screen.
Input
A Index of planet (1 based, 0 = undraw)
display_planet 9175 ADD A,A a *= 2
9176 JR Z,erase_planet If zero then undraw planet
9178 LD HL,$9396 Planet table minus 2: planet_table-2
917B RST $08 Add A to HL
917C LD E,(HL) Get LSB of planet data
917D INC HL
917E LD D,(HL) Get MSB of planet data
917F EX DE,HL Address now in HL
9180 CALL display_planet_name_table Draw to name table
9183 CALL display_planet_name_and_sprites Display planet name and sprites
9186 LD HL,$0400 Copy 135 patterns
9189 CALL copy_planet_patterns ...
918C LD HL,planet_colors Planet colors
918F LD DE,$2010 Address in color table
9192 LD BC,$0010 16 color sets
9195 RST $38 WRITE_VRAM
9196 LD DE,$0900 Address in sprite pattern table
9199 LD HL,planet_sprite_patterns Sprite patterns
919C LD BC,$0098 19 patterns
919F RST $38 WRITE_VRAM
91A0 RET
Prev: 90D6 Up: Map Next: 91A1