Development/Tutorials/Games/Highscores

From KDE TechBase
Revision as of 21:57, 17 April 2007 by Milliams (talk | contribs) (Start of tutorial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

  1. Grouping of scores (for different difficulty levels etc.)
  2. Standard fields: Name, Level, Date, Time, Score
  3. Custom fields (e.g. number of moves)

The Code

  1. include <KScoreDialog>