-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite Track handling #61
Comments
Part of the rewrite is separate Track statistics into their own class. I have extracted this but to be honest, I don't understand all of the statistics that are currently in use (or were on Playforia). public class TrackStats {
private Track track;
private int totalNumberOfAttempts;
private int totalStrokes;
private int bestPar;
private int numberOfBestPar;
private String firstBestPlayer;
private long firstBestTime;
private String lastBestPlayer;
private long lastBestTime;
private int[] ratings;
} I am not sure about the use case for |
The UI on Playforia had shown the first player who scored the highscore in all time the the last player who was able to finish the same number of strokes. If I remember correctly... No need to show something else, the UI is already overloaded but if you or anyone else has a good idea, feel free to implement it. |
Does it still show in this version? There is best stroke and by who, but I do not know if it also shows the lastPlayer who scored it. |
I have not checked the current version of the game as I am currently not on my computer but this is what I found on Google. Its in German, but there are also screenshots in other languages. I can see 2 different usernames and timestamps there. To be honest, I would not have anything against getting rid of one of them. |
Thanks! I will remove the lastPlayer then, only fastest deserve the glory :D |
One thing which would be great, is allow resetting the highscores of all tracks in a easy way. Most of the highscores are unrealistic because they have been achieved using the aimbot (See #62), so the efforts in reenabling the highscore database would be quite useless as the score can not be beaten anymore. |
Current plan is to start with blank database as default, but providing option to import scores from the files. In this case we dont have to do anything to reset it. |
Another question, do we want to allow rating once per user, or once per game? |
I do not mind very much. Once per user seems to be more realistic but could be harder to handle, especially as there is no user-database. |
We also have bestTime parameter, which I guess should be date instead? |
Ok! |
As part of #37, I would like to rewrite how the Tracks and Stats work.
This issue is to track (no pun intended) discussions surrounding this topic.
The text was updated successfully, but these errors were encountered: