polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit c6062a37b11deb6024ba2daa413a1c5e5feb44d5
parent 4b9272c4f291493e3d4bbd94eb1217a88475e88f
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 27 Apr 2020 01:24:44 -0700

make it easier to jump

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/update.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/update.c b/src/update.c @@ -391,7 +391,7 @@ static void player_update(struct game *game, struct entity *player) /* node_translate(node, move); */ if (tri) { - if (vec3_eq(move, V3(0,0,0), 0.01)) { + if (vec3_eq(move, V3(0,0,0), 0.1)) { player->flags |= ENT_ON_GROUND; } else if (pen < 0) { @@ -411,7 +411,7 @@ static void player_update(struct game *game, struct entity *player) if (player->flags & ENT_ON_GROUND && (was_key_pressed_this_frame(game, SDL_SCANCODE_SPACE) || was_button_pressed_this_frame(game, SDL_CONTROLLER_BUTTON_X))) { - entity_jump(player, 0.5); + entity_jump(player, 2.0); } /* debug("player velocity %f %f %f\n", */