Skip to content

Conversation

@jsmankoo
Copy link

Added game difficulty. Game gets faster every 500 points.

@gnerkus
Copy link

gnerkus commented Jun 30, 2017

👍

Copy link
Owner

@slugo slugo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the pull request! I've checked the changes and everything seems fine, but can we modify the difficulty calculations? I've tested it and after 1000pts it gets reaaally fast. Maybe we can make it increase more slowly. After that is changed we can merge the pr.

{
const delta = 100;
const difficultyPoints = action.points + state.difficultyPoints;
const difficulty = state.difficulty - 50 * Math.floor(difficultyPoints / delta);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the calculation I'm referring to.

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.

3 participants