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

Integrate level system within the game #1

Open
nveenjain opened this issue Oct 2, 2018 · 4 comments
Open

Integrate level system within the game #1

nveenjain opened this issue Oct 2, 2018 · 4 comments

Comments

@nveenjain
Copy link
Owner

Currently, the game doesn't have a level system.
However, implementing a level system will not be difficult.
We can set a timer, which when crossed, increase the level of user.
At each level, the number of stars (yellow spheres) will be equal to current level number initially.
If you have any query please ask, I would love to guide.

@palmerhinchliffe
Copy link

I'll have a go at this :)

@nveenjain
Copy link
Owner Author

sure @palmerhinchliffe, if you need any help, ask me.

@palmerhinchliffe
Copy link

palmerhinchliffe commented Oct 2, 2018

PR #8:

I made it so the level is increased when the score reaches a certain amount. Then a new Star is placed in a random location, so the game gets a little harder each level. I included in the UI a Level indicator, and also an indicator that tells the player what score they need to get to the next level.

The score needed to level up is multiplied by 2.5 each level, but this can be changed (on line 160 of original.js). Also you can change the score needed to get to level 2 by changing the integer on line 8.

Hope this is something like what you were after! :)

One thing I forgot to do was make sure that when the player levels up, the new Star is not placed close to any existing stars. I could fix that if you'd like.

@palmerhinchliffe
Copy link

palmerhinchliffe commented Oct 3, 2018

Please refer to PR #10 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants