Skip to main content
Commonmark migration
Source Link

I want the player to be able to save his score when she makes it into top 10 of high scores. Upon success, player will be asked for a name to submit. This does not need to be unique per player. I just want a basic global score board available for everyone who plays the game via web player (from github.io page of the project).

When searched for how to keep high scores, I came across PlayerPrefs.

On Web players, PlayerPrefs are stored in binary files in the following locations:

 
  • Mac OS X: ~/Library/Preferences/Unity/WebPlayerPrefs
  • Windows: %APPDATA%\Unity\WebPlayerPrefs

As far as I understood, the results are kept in local machine and won't be same for everyone. So it's good for keeping track of your own score, locally.

As a placeholder in the current version of the game, I keep the scores in a local .txt file in the project directory. Can I succeed with this approach and use the github.io server to maintain a global scoreboard or do I necessarily need a database to achieve this goal?

I want the player to be able to save his score when she makes it into top 10 of high scores. Upon success, player will be asked for a name to submit. This does not need to be unique per player. I just want a basic global score board available for everyone who plays the game via web player (from github.io page of the project).

When searched for how to keep high scores, I came across PlayerPrefs.

On Web players, PlayerPrefs are stored in binary files in the following locations:

 
  • Mac OS X: ~/Library/Preferences/Unity/WebPlayerPrefs
  • Windows: %APPDATA%\Unity\WebPlayerPrefs

As far as I understood, the results are kept in local machine and won't be same for everyone. So it's good for keeping track of your own score, locally.

As a placeholder in the current version of the game, I keep the scores in a local .txt file in the project directory. Can I succeed with this approach and use the github.io server to maintain a global scoreboard or do I necessarily need a database to achieve this goal?

I want the player to be able to save his score when she makes it into top 10 of high scores. Upon success, player will be asked for a name to submit. This does not need to be unique per player. I just want a basic global score board available for everyone who plays the game via web player (from github.io page of the project).

When searched for how to keep high scores, I came across PlayerPrefs.

On Web players, PlayerPrefs are stored in binary files in the following locations:

  • Mac OS X: ~/Library/Preferences/Unity/WebPlayerPrefs
  • Windows: %APPDATA%\Unity\WebPlayerPrefs

As far as I understood, the results are kept in local machine and won't be same for everyone. So it's good for keeping track of your own score, locally.

As a placeholder in the current version of the game, I keep the scores in a local .txt file in the project directory. Can I succeed with this approach and use the github.io server to maintain a global scoreboard or do I necessarily need a database to achieve this goal?

edited tags
Link
Varaquilex
  • 857
  • 3
  • 12
  • 26
Source Link
Varaquilex
  • 857
  • 3
  • 12
  • 26

Keeping high scores on Unity web player

I want the player to be able to save his score when she makes it into top 10 of high scores. Upon success, player will be asked for a name to submit. This does not need to be unique per player. I just want a basic global score board available for everyone who plays the game via web player (from github.io page of the project).

When searched for how to keep high scores, I came across PlayerPrefs.

On Web players, PlayerPrefs are stored in binary files in the following locations:

  • Mac OS X: ~/Library/Preferences/Unity/WebPlayerPrefs
  • Windows: %APPDATA%\Unity\WebPlayerPrefs

As far as I understood, the results are kept in local machine and won't be same for everyone. So it's good for keeping track of your own score, locally.

As a placeholder in the current version of the game, I keep the scores in a local .txt file in the project directory. Can I succeed with this approach and use the github.io server to maintain a global scoreboard or do I necessarily need a database to achieve this goal?