Prev: F300 Up: Map Next: F336
F314: Invaders : Set X pos of each invader.
Used by the routines at Invaders_NextStage and Action13_EnterAcrade.
Input
Output
Invaders_Init_XPos F314 LD HL,Invaders_Data Start with top row, left hand column.
F317 LD A,$0A Left hand position.
F319 LD B,$08 8 columns.
Invaders_Init_XPos_0 F31B LD (HL),A Top.
F31C INC HL
F31D INC HL
F31E LD (HL),A Middle.
F31F INC HL
F320 INC HL
F321 LD (HL),A Bottom.
F322 INC HL
F323 INC HL
F324 ADD A,$18 Next column position.
F326 DJNZ Invaders_Init_XPos_0 Next column.
F328 XOR A
F329 LD (Invaders_ChangeDirFlag),A
F32C INC A Reset direction to right.
F32D LD (Invaders_CurrentDir),A
F330 LD A,$18 Reset bitmap frame.
F332 LD (Invaders_PauseValue),A
F335 RET
Prev: F300 Up: Map Next: F336