[title: "StatsMenu Class"] ← Back to index

Player statistics display showing gameplay and progression metrics.

[heading: "Description"]

StatsMenu displays comprehensive player statistics including games played, total score, play time, combo records, and progression metrics. Statistics update in real-time.

[heading: "Methods"] [table header] [ Method | Parameters | Description ] [ create | () | Creates stats menu UI ] [ formatTime | (seconds) | Formats seconds into readable time string ] [ formatSessionTime | (seconds) | Formats session duration ] [ updateStatsText | () | Updates all statistics displays ] [ update | () | Handles input and real-time updates ] [ shutdown | () | Cleans up update timer ] [/table] [heading: "Properties"] [table header] [ Property | Type | Description ] [ titleText | Text | Section title ] [ leftColumn | Text | Left column statistics ] [ rightColumn | Text | Right column statistics ] [ instructionText | Text | Exit instruction ] [ updateTimer | Number | Timer for real-time updates ] [/table] [heading: "Displayed Statistics"] [table header] [ Category | Statistics ] [ General | Games Played, Total Score, Max Combo, Perfect Games ] [ Character | Characters Created, Max Level, Skills Unlocked ] [ Time | Total Time, Play Sessions, Avg Session, Longest Session ] [ Streak | Current Streak, Longest Streak ] [ High Scores | High Scores Set ] [/table] [heading: "Example Usage"] [codeblock javascript] // Start stats menu from extras menu game.state.start("StatsMenu"); // Press any key to exit back to main menu [/codeblock] [footer: "© Retora 2026"]