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

Player jumping #8

Open
PowerKiKi opened this issue Aug 3, 2013 · 0 comments
Open

Player jumping #8

PowerKiKi opened this issue Aug 3, 2013 · 0 comments
Labels
Milestone

Comments

@PowerKiKi
Copy link
Owner

Player can jump only if his feet contacts with some level's shapes.

  1. Detect collision point
  2. If collision point is body.position + body.height / 2, then can jump

What about if player is on a slope ? we have to take in account player's angle to find feet

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

No branches or pull requests

1 participant