Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. How do I keep Highscores at qml app.
QtWS25 Last Chance

How do I keep Highscores at qml app.

Scheduled Pinned Locked Moved Game Development
4 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Busta Bug
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      task_struct
      wrote on last edited by
      #2

      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.

      "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

      • Linu...
      1 Reply Last reply
      0
      • B Offline
        B Offline
        Busta Bug
        wrote on last edited by
        #3

        Yep, I already saw that, I trying that, but it isnt runnig, maybe saving scores but it doesnt show them later. Please help me...

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Busta Bug
          wrote on last edited by
          #4

          thanks very muxh. I got it :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved