Development/Tutorials/Games/Highscores
< Development | Tutorials
High Scores
Tutorial Series | KDE Games |
Previous | Introduction to KDE4 programming |
What's Next | |
Further Reading | KScoreDialog |
Abstract
This tutorial will explain how to use the high score system built into kdegames in your application.
KScoreDialog
The high score system is provided through the KScoreDialog class. It is intended to be a lightweight solution and offers the following abilities:
- Grouping of scores (for different difficulty levels etc.)
- Standard fields: Name, Level, Date, Time, Score
- Custom fields (e.g. number of moves)
The Code
- include <KScoreDialog>