Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › Offline HighScore

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


    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?



    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.




    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.