Prev: F23B Up: Map Next: F2E2
F26C: Show Title Screen
Used by the routine at RunGame.
Draws the title screen, with a frame, the title text and two small graphics, and shows the control icons and the options with UpdateControlIcon and DrawMenuOptions. A tune plays until a key is pressed and then the menu runs with RunTitleMenu. When it has finished, the options are shown again and a short tune plays.
title-screen
ShowTitleScreen F26C CALL ClearPixels Call ClearPixels.
F26F CALL FillAttributesWhite Call FillAttributesWhite.
F272 LD IX,$F22A The title frame parameters.
F276 LD DE,$F202 The title frame corners.
F279 LD (IX+$09),E Write E to offset 09 of IX.
F27C LD (IX+$0A),D Write D to offset 0A of IX.
F27F LD DE,$F21E The title frame ticks.
F282 LD (IX+$0C),E Write E to offset 0C of IX.
F285 LD (IX+$0D),D Write D to offset 0D of IX.
F288 CALL DrawFrame Call DrawFrame.
F28B LD DE,$F112 The title text.
F28E LD B,$0C B=0C.
F290 CALL PrintTextRepeatedly Call PrintTextRepeatedly.
F293 LD HL,$BF40 Use BF40.
F296 LD DE,$F2E3 The title graphics.
F299 CALL DrawBitmap Call DrawBitmap.
F29C LD HL,$BEB0 Use BEB0.
F29F CALL DrawBitmap Call DrawBitmap.
F2A2 LD A,$46 A=46.
F2A4 LD ($5AE9),A A title-screen attribute.
F2A7 LD ($5AF6),A A title-screen attribute.
F2AA LD HL,$486C HL=486C.
F2AD LD (HL),$0F Store 0F at the address in HL.
F2AF INC L Advance L.
F2B0 LD B,$06 B=06.
ShowTitleScreen_Line F2B2 LD (HL),$FF Store FF at the address in HL.
F2B4 INC L Advance L.
F2B5 DJNZ ShowTitleScreen_Line Decrease B and jump to ShowTitleScreen_Line until none remain.
F2B7 LD (HL),$F0 Store F0 at the address in HL.
F2B9 LD IX,$8708 The control icon data.
F2BD LD DE,$870E The control icon sprites.
F2C0 CALL UpdateControlIcon Call UpdateControlIcon.
F2C3 LD IX,$870B The second player's control icon.
F2C7 LD DE,$874F The second control-icon sprite.
F2CA CALL UpdateControlIcon Call UpdateControlIcon.
F2CD CALL DrawMenuOptions Call DrawMenuOptions.
F2D0 LD DE,$70D8 The tune: title screen.
F2D3 CALL PlayMusic_WaitKey Call PlayMusic_WaitKey.
F2D6 CALL RunTitleMenu Call RunTitleMenu.
F2D9 CALL DrawMenuOptions Call DrawMenuOptions.
F2DC LD DE,$F4E4 The tune: game start.
F2DF JP PlayMusic Jump to PlayMusic.
Prev: F23B Up: Map Next: F2E2