Tisaac wrote: ↑13 July 2021, 14:30
JonChambers wrote: ↑13 July 2021, 12:47
Tisaac wrote: ↑13 July 2021, 12:27
Simpler than getting the highest score of the two players in the js ??
These are also sent in getAllDatas by framework, so you really don't have to do anything more than that.
And I’m not going to create a client side scoring system just for that one issue.
What are you talking about ?? The BGA framework already do that for you, that's the little stars right next the player names. They get automatically initialized with the value from the DB that is send in getAllDatas without you having to do anyting.
You can access basic player infos by using this.gamedatas.players
I'm talking about exactly what you think. I've read the documentation too. I know exactly how to do everything you suggested. But I won't.
Partly because it's a couple of lines longer, but more because the score doesn't get involved until the last second (1 for winner, 0 for loser) and I want to avoid displaying said score to the player as much as possible. I know veteran players know what 0 stars mean, but for me it's just clutter. Dash-star isn't much better, but it's a mild improvement.
Also, my solution is slightly shorter.