tetris.leaderboard module¶
- class tetris.leaderboard.Leaderboard(settings: Settings)¶
Bases:
objectClass for the leaderboard screen
- check_events() bool | None¶
Checks for events
- Returns:
True if go back button is pressed, None otherwise
- Return type:
(bool | None)
- create_header() None¶
Creates the header of the leaderboard
- create_leaderboard() None¶
Creates the leaderboard
- create_title() None¶
Creates the title of the leaderboard
- draw_header() None¶
Draws the leaderboard header
- draw_title() None¶
Draws the leaderboard title
- main() None¶
Main function of the leaderboard screen that draws everything and checks for events