I am looking for recommendations on how others would recommend doing this.
I have a game that is basically Worlds with Levels and Questions within the Level. You get scores within the Levels by answering Questions and the World score is a sum of the Levels within the given World.
I tried using WebStorage, via example download, but it doesnt seem to doing what I want.
Here is how I am trying to get the scoring to work:
Player is in World1, Level1, Question1 and gets a 10 points
Apply 10 to CurrentWorld, CurrentLevel, CurrentQuestion (result World1, Level1, Question1 = 10)
Apply +10 to CurrentWorld, CurrentLevel (result World1, Level1 = 10)
Apply +10 to CurrentWorld (result World1 = 10)
Player is in Question2, same World/Level, and gets a 10 points
Apply 10 to CurrentWorld, CurrentLevel, CurrentQuestion (result World1, Level1, Question2 = 10)
Apply +10 to CurrentWorld, CurrentLevel (result World1, Level1 = 20)
Apply +10 to CurrentWorld (result World1 = 20)
Player skips to Question5, same World/Level, and gets a 15 points
Apply 15 to CurrentWorld, CurrentLevel, CurrentQuestion (result World1, Level1, Question5 = 15)
Apply +15 to CurrentWorld, CurrentLevel (result World1, Level1 = 35)
Apply +15 to CurrentWorld (result World1 = 35)
Player goes to Level2, Question1 and gets a 20 points
Apply 20 to CurrentWorld, CurrentLevel, CurrentQuestion (result World1, Level2, Question1 = 20)
Apply +20 to CurrentWorld, CurrentLevel (result World1, Level2 = 20)
Apply +20 to CurrentWorld (result World1 = 55)
End result
World1 = 55 (sum of all levels within world)
Level1 = 35 (sum of all questions within level)
- Level1 - Question1 = 10
- Level1 - Question2 = 10
- Level1 - Question5 = 15
Level2 = 20 (sum of all questions within level)
And so on...
I then want to report on the scores for each section individually.
What is the best way to do this?