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 to implement high score?
Qt 6.11 is out! See what's new in the release blog

How to implement high score?

Scheduled Pinned Locked Moved Solved Game Development
4 Posts 3 Posters 3.9k Views 2 Watching
  • 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.
  • G Offline
    G Offline
    grumpy
    wrote on last edited by A Former User
    #1

    Does Nokia Ovi have any place where a game could let users read/write high scores. If I have understood it correctly the iphone community has some support for this?

    Grumpy

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

      I heaven't heard of it. Maybe it is better to ask on http://www.forum.nokia.com/

      Cheers
      Tom

      1 Reply Last reply
      0
      • G Offline
        G Offline
        grumpy
        wrote on last edited by
        #3

        Thanks, posted the same question there.

        Cheers,
        Grumpy

        1 Reply Last reply
        0
        • GTDevG Offline
          GTDevG Offline
          GTDev
          wrote on last edited by GTDev
          #4

          V-Play Engine for qt-based apps and games comes with many components to make mobile development easier.

          You can also add leaderboards and user profiles to your application with a few lines of code:

          import VPlay 2.0
          import VPlayApps 1.0
          import QtQuick 2.9
          
          App {
          
           // app navigation
           Navigation {
             NavigationItem {
               title: "User Profile"
               icon: IconType.user
               NavigationStack {
                 initialPage: socialView.profilePage
               }
             }
          
             NavigationItem {
               title: "Leaderboard"
               icon: IconType.flagcheckered
               NavigationStack {
                 initialPage: socialView.leaderboardPage
               }
             }
           }
          
           // service configuration
           VPlayGameNetwork {
             id: gameNetwork
             gameId: 285
             secret: "AmazinglySecureGameSecret"
          
             // increase leaderboard score by 1 for each app start
             Component.onCompleted: gameNetwork.reportRelativeScore(1)
           }
          
           // social view setup
           SocialView {
             id: socialView
             gameNetworkItem: gameNetwork
             multiplayerItem: multiplayer
             visible: false // we show the view pages on our custom app navigation
           }
          }
          

          See here for more information: https://v-play.net/cross-platform-app-development/how-to-add-chat-service-and-cross-platform-leaderboard-with-user-profiles-to-your-ios-or-android-app#add-leaderboard-with-user-profiles

          Best,
          GTDev

          Senior Developer at Felgo - https://felgo.com/qt

          Develop mobile Apps for iOS & Android with Qt
          Felgo is an official Qt Technology Partner

          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