Skip to content

Conversation

@3j14
Copy link

@3j14 3j14 commented Jul 5, 2016

Only change highscore if it is actually bigger than the global highscore. Get value of /bestscore/ and check if it is less than the new high score. Only THEN change the high score.

Only change highscore if it is actually bigger than the global highscore. Get value of `/bestscore/` and check if it is less than the new high score. Only THEN change the high score.
@3j14 3j14 closed this Jul 5, 2016
@3j14 3j14 deleted the patch-1 branch July 5, 2016 19:31
@3j14
Copy link
Author

3j14 commented Jul 5, 2016

Sorry my fault

@3j14 3j14 restored the patch-1 branch July 5, 2016 19:39
@3j14 3j14 reopened this Jul 5, 2016
@3j14
Copy link
Author

3j14 commented Jul 5, 2016

Was right. But wasn't the nicest way to fix it. Will improve.

No need to check the firebase as we also have `this.globaHighscore`.
Still, users could edit the `set(this.score);` to anything they want.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant