Prev: 34309 Up: Map Next: 34386
34325: 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 34325 CALL RandomNumber Fetch a random number to keep the seed moving.
34328 LD HL,(39524) Add one to the frame counter in FrameCounter.
34331 INC HL
34332 LD (39524),HL
34335 LD IX,34568 Use the control icon data for player one...
34339 LD DE,34574 ...with the sprite of the icon in DE...
34342 CALL UpdateControlIcon ...and update the icon.
34345 LD IX,34571 Use the control icon data for player two...
34349 LD DE,34639 ...with the sprite of the icon in DE...
34352 CALL UpdateControlIcon ...and update the icon.
34355 LD HL,12144 Draw the first option marker.
34358 CALL DrawMenuOption
34361 LD HL,16240 Draw the second option marker.
34364 CALL DrawMenuOption
34367 LD D,24 Delay for a short while.
34369 CALL Delay
34372 LD A,239 Read the keyboard row "0" to "6".
34374 OUT (253),A
34376 IN A,(254)
34378 AND %00000001 Test the "0" key.
34380 RET Z Return if it is pressed, to start the game.
34381 CALL ReadMenuKeys Check the other keys.
34384 JR RunTitleMenu Go round again.
Prev: 34309 Up: Map Next: 34386