Forums

OverviewV-Play 2 Support (Qt 5) › Offline HighScore

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14431

    Wilfred

    Hey Guys,

    I am trying to store a highscore value offline so the next time the app is open I can retrieve that value. I do not wish to use the vplaygamenetwork and would rather just store the value on the device. Is there any examples of how this is done?

    Thanks!
    Wilfred

    #14432

    Günther
    V-Play Team

    Hi Wilfred!

    We do not have an example ready for that, but you can use the Storage type to save key-value pairs persistent on the device and load them again when needed. The value you store can be any javascript object. The getValue and setValue methods automatically serialize/deserialize the values to/from JSON format.

    You can use this to e.g. save an array of top ten players locally in the storage.

    Best,
    Günther

    #14433

    Wilfred

    Thanks for the quick reply!

    I will look into this. :)

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support