Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 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
    Felgo 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded