Skip to content
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

User stats #182

Closed
simon987 opened this issue Dec 23, 2018 · 3 comments

Comments

@simon987
Copy link
Owner

commented Dec 23, 2018

User stats should be added and displayed on the leaderboard (See: UserStats):

  • Death counts
  • Total execution time (ms)
  • Walk distance (tiles)
@woosle1234

This comment has been minimized.

Copy link
Contributor

commented Mar 14, 2019

Hi, I would like to try and implement this feature. Can you just briefly explain how the userstats display, set, and get data? Also is the execution time a real-time timer or in-game timer?

@simon987

This comment has been minimized.

Copy link
Owner Author

commented Mar 14, 2019

@woosle1234

Stats are displayed in the 'leaderboard page':

Total execution is real-time - the execution time is already calculated (it is used to calculate the energy cost of CPU execution)

You can set user stats by directly manipulating their UserStats attribute (you can find an exemple Here)

Implementation details:
I'd like that *Event & *Listener classes be created for each stat, so that the stats are set inside the listener, you can find an exemple of events being dispatched Here

If you need any more info let me know, thanks!

@pommilp

This comment has been minimized.

Copy link

commented May 9, 2019

shouldn't this be closed?

@simon987 simon987 closed this May 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.