Prev: 54000 Up: Map Next: 54047
54011: Draw Game Screen
Used by the routines at InitialiseGame and CheckSheriffLost.
Draws the parts of the screen which do not change during a stage: the border of the playfield, the revolver, the frame of the telegram, the panel for the town and the lives and the bounty. The attributes are first set to the value in E and the screen is cleared.
game-screen
Input
E The attribute for the whole screen
Set the attributes and clear the screen.
DrawGameScreen 54011 CALL SetAttributes Call SetAttributes.
54014 CALL ClearScreen Call ClearScreen.
Print the telegram.
54017 CALL PrintTelegram Call PrintTelegram.
Use the tiles of the panel and the border.
54020 LD HL,36080 Set TileSetAddress to ScreenTileSet.
54023 LD (41487),HL
Draw the border of the playfield.
54026 CALL DrawBorder Call DrawBorder.
Draw the revolver.
54029 CALL DrawRevolverDisplay Call DrawRevolverDisplay.
Draw the frame of the telegram.
54032 CALL DrawTelegramFrame Call DrawTelegramFrame.
Draw the panel of the town, if this is the town.
54035 CALL DrawTownPanel Call DrawTownPanel.
Draw the pictures at the sides, if this is not the town.
54038 CALL DrawSidePictures Call DrawSidePictures.
Draw the lives.
54041 CALL DrawLives Call DrawLives.
Draw the bounty.
54044 JP DrawBounty Jump to DrawBounty.
Prev: 54000 Up: Map Next: 54047