-
Notifications
You must be signed in to change notification settings - Fork 0
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
Resolved issue #4 #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will also need to have tests eventually
if (!g->typing) { | ||
float m = dt * 1.0; | ||
g->ortho = glfwGetKey(g->window, CRAFT_KEY_ORTHO) ? 64 : 0; | ||
g->fov = glfwGetKey(g->window, CRAFT_KEY_ZOOM) ? 15 : 65; | ||
if (glfwGetKey(g->window, CRAFT_KEY_FORWARD)) sz--; | ||
if (glfwGetKey(g->window, CRAFT_KEY_BACKWARD)) sz++; | ||
if (glfwGetKey(g->window, CRAFT_KEY_FORWARD)) { | ||
if(glfwGetKey(g->window, CRAFT_KEY_RUN)) isRunning = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest including this under the existing CRAFT_KEY_FORWARD
if statement as it is duplicated code
src/main.c
Outdated
@@ -2439,6 +2444,7 @@ void handle_movement(double dt) { | |||
} | |||
} | |||
float speed = g->flying ? 20 : 5; | |||
if(isRunning) speed*=4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought a multiplier of 1.5 felt better when I tested it. Reminded me of minecrafts sprint; *4 seems like with speed boosts. But of course that is just preference
Oh this should also be added to the readme section on controls |
Requested changes have been made.
The controls section in README.md has been updated.
capturing comments from team discord: |
CTRL + W to run faster