Multiplayer improvements and reupload score on error

- In multiplayer you will play at the bottom if you joined second
- Add a dialog to song select that score has not been saved
- Uploads the score when logged in again
- Translate error messages from the server
This commit is contained in:
LoveEevee
2020-03-14 07:50:04 +03:00
parent ad62ac800c
commit 7f1bb9d357
21 changed files with 543 additions and 211 deletions

View File

@@ -506,7 +506,7 @@ class Game{
if(this.musicFadeOut === 0){
if(this.controller.multiplayer === 1){
var obj = this.getGlobalScore()
obj.name = account.loggedIn ? account.displayName : strings.defaultName
obj.name = account.loggedIn ? account.displayName : null
p2.send("gameresults", obj)
}
this.musicFadeOut++