I’ve recently used PlayerPrefs in the standalone version of a game: that’s an arcade shoot-em-'up, and I want to save the best score ever achieved throughout game sessions.
To be precise, the PlayerPrefs contains the couple of values {player_name, score} and, at the beginning of the game, I load these values to visualize them to the player: this is not the problem, since it works great.
My question is: can I implement the same thing in a Web build application? I want to put the game on a website, and allow the users to compete for the best score. I’m aware of the fact that this should be a trivial question, but I haven’t understood if PlayerPrefs are a standalone prerogative or not (or if other tools would be better in that case).
Moreover, should I be aware about some kind of concurrence mechanisms (for example, if two players register a score that’s higher than the actual one at the same time*)?
Thanks.
*I don’t think that my game will be so famous to generate such a situation, but exceptions’ raising is good practice!