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

Scoring system and scoreboard implementation #74

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

miniature-tiger
Copy link
Owner

Now that the majority of the game functionality has been added, one of the final steps is to add scoring. Players are rewarded for game actions: Discovering resources, building ships, and fulfilling trade contracts. A score board has been added on the header slider. The scoreboard shows each time a scoring action is made.

Implementation of the scoring system is in a new js file: scoring.js.
Implementation includes:

  • An array to hold a full detailed breakdown of the scores.
  • A method to translate actions into scores and commentary.
  • A method to summarise the full score array into a format for the score board.
  • A method to draw the scoreboard.

The update also included:

  • Adding calls to the scoring update from appropriate points in the game logic.
  • Adding the CSS styling for the header.

@miniature-tiger miniature-tiger merged commit 4dadd0b into master Jun 12, 2018
@miniature-tiger miniature-tiger deleted the miniature-tiger-patch-69 branch November 13, 2018 10:39
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.

None yet

1 participant