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

Modify The Impulse of the bird #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hadyhelal
Copy link

First of al thank you for this open source project I learned a lot form it😄.

I played the game as a user and found out that it's pretty hard to get a normal score, actually I can't pass The first block and this annoyed me(as a player)!

I looked at the code and modify this line in GameScene -> line number 211
bird.physicsBody?.applyImpulse(CGVector(dx: 0, dy: 30))

into
bird.physicsBody?.applyImpulse(CGVector(dx: 0, dy: 22))

I tried different values and 22 was the most suitable one.

This GIF below is the original game

ezgif com-optimize

And this is modified version

ezgif com-optimize-2

Note that here the player touch screen more times and this makes him get into game and pay more attention to the bird's movement.

Modify the bird’s jumb to satisfy the player condition to got high score.
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.

1 participant