Prev: 8605 Up: Map Next: 8652
8615: Run Title Menu
Used by the routine at ShowTitleScreen.
Runs the title screen: it keeps the random number generator ticking over, slides the control icons for each player to the position of the control method selected, redraws the option markers and waits for the "0" key to be pressed to start the game.
RunTitleMenu 8615 CALL RandomNumber Fetch a random number to keep the seed moving.
8618 LD HL,($9A64) Add one to the frame counter in FrameCounter.
861B INC HL
861C LD ($9A64),HL
861F LD IX,$8708 Use the control icon data for player one...
8623 LD DE,$870E ...with the sprite of the icon in DE...
8626 CALL UpdateControlIcon ...and update the icon.
8629 LD IX,$870B Use the control icon data for player two...
862D LD DE,$874F ...with the sprite of the icon in DE...
8630 CALL UpdateControlIcon ...and update the icon.
8633 LD HL,$2F70 Draw the first option marker.
8636 CALL DrawMenuOption
8639 LD HL,$3F70 Draw the second option marker.
863C CALL DrawMenuOption
863F LD D,$18 Delay for a short while.
8641 CALL Delay
8644 LD A,$EF Read the keyboard row "0" to "6".
8646 OUT ($FD),A
8648 IN A,($FE)
864A AND %00000001 Test the "0" key.
864C RET Z Return if it is pressed, to start the game.
864D CALL ReadMenuKeys Check the other keys.
8650 JR RunTitleMenu Go round again.
Prev: 8605 Up: Map Next: 8652