RGonzalezTech / SpaceTap

MIT License
1 stars 0 forks source link

Local High Score System #14

Open RGonzalezTech opened 8 months ago

RGonzalezTech commented 8 months ago

Summary

We can store this information in some form of cache, if available. The game is primarily meant to publish to HTML/Browser. I can test working with the web JavascriptBridge to write to localStorage, or user:// to store serialized data. Not sure which would be best/workable.

RGonzalezTech commented 4 months ago

This one blocks #22

I should implement the high score system before I review the systems that are in-place and create their documentation.

RGonzalezTech commented 4 months ago

So far, I've implemented a singleton / autoload class that will load and save the list of leaderboard entries to a .json file in the user:// directory. This will allow us to persist it. We will only store the top 10 leaderboard entries, any other are ignored/omitted.

To add a UI for this, we require: