How do I keep Highscores at qml app.
-
I'm developing puzzle game, Begum's Zoo. In the game, there are a 6 by 8 grid and 24 different animal photos( 2 same photos). You try find the same animals in gageds. Maybe it is boring but my goal is to leaaring qt and qml. There are different grid sizes for diff level. The game counts the time. If time on, gives high points. But while time off, it gives lower points.
Everything's okay, I wrote all code I need. It is running well. But I want to keep high scores, how can I do it? I need to keep a string "name", two int "score", and "time. Meybe I add a int "level" too. I tried js functions for date base, :C I didnt understand it very well. How will keep that values? Could you help me? THANKSSS...Note: my english is not very good, i'm sorry for mistakes.. And last thing, I need qt coder friends. Maybe connect me... akrap16@gmail.com
-
Hi,
have a look at "this example":http://doc.qt.nokia.com/4.7-snapshot/declarative-tutorials-samegame-samegame4.html#keeping-a-high-scores-table.