-
Notifications
You must be signed in to change notification settings - Fork 74
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
Keyboard controls #19
Comments
Yeah I believe there is a small bug for the jumping which doesn't work when the space bar is pressed although it works with the joystick. It's very strange, but it needs to be looked at. |
When I comment out this (
|
Yeah that needs to remain. We may need to add some special case to check if the player is trying to jump and if they are, don't do "some case" in the physics logic. |
Here I tried to fix it: https://github.com/AppPhil/TerraLegion/commit/1c88eb0b6b8218e13dbeb7df6d48f0bed38dffe3 With this code you can jump with "W", "UP" or "SPACE" but when there's a block over you and you collide with it you stuck there for a short time. After that you normally fall down. |
For testing TerraLegion on my computer I don't like using the joystick. When I press "A" or "D" the character moves to the left or to the right. When I press space I jump only sometimes when I'm not completely standing on a block. Do you understand what I mean?
The text was updated successfully, but these errors were encountered: