[Kde-games-devel] Help about a new game
Vincent Dupont
vincent.touffi at gmail.com
Thu May 14 23:05:57 CEST 2009
2009/5/14 Parker Coates <parker.coates at gmail.com>:
>
> KScoreDialog only sorts based on score. If two entries have the same
> score, then the older one is considered better.
>
> If you wish to have more complicated sorting in your game, then
> calculate a score that includes the other parameters you wish to sort
> on. So for the example above,
>
> score = points * 10000 + time
>
> So you get:
>
> Name Score Points Time
> A 20004 2 4
> B 40003 4 3
> C 40005 4 5
>
> Then just hide the "Score" column in the dialog to avoid confusing
> your users. I hope that makes sense.
>
Ok, thanks for the trick, it seems to work now.
By the way, I was wondering if I might put my code into the kde svn.
Does it have enough interest ?
Regards,
Vincent
More information about the kde-games-devel
mailing list