summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-30 04:38:48 -0400
committerrealtradam <[email protected]>2023-05-30 04:38:48 -0400
commitbc1d804c8a5e5e126c492f29a1d1e8d70d1cb66a (patch)
tree083fec7eaa73a1bf6d20b419188fd5e47eb7b5fe
parent7076731c7f72fc4ea3049626475483e91aa11344 (diff)
downloadrodeo_sample_game-bc1d804c8a5e5e126c492f29a1d1e8d70d1cb66a.tar.gz
rodeo_sample_game-bc1d804c8a5e5e126c492f29a1d1e8d70d1cb66a.zip
remove printing
-rw-r--r--src/player.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/player.c b/src/player.c
index 9d1e01e..56fdb98 100644
--- a/src/player.c
+++ b/src/player.c
@@ -153,15 +153,10 @@ parse_player_input(void)
(*(float*)units_move_right_input(NULL, NULL) + *(float*)units_move_left_input(NULL, NULL)),
(*(float*)units_move_down_input(NULL, NULL) + *(float*)units_move_up_input(NULL, NULL))
};
- if(glm_vec2_norm(inputs) > 1)
+ if(glm_vec2_norm2(inputs) > 1)
{
glm_vec2_normalize(inputs);
}
- rodeo_log(
- rodeo_logLevel_info,
- "%f, %f",
- inputs[0], inputs[1]
- );
player_position->dx = inputs[0] * (rodeo_frame_time_get() / (1000.0f/60.0f) * ((60.0f - (float)player.sprite.iter) / 60.0f)) * 7;
player_position->dy = inputs[1] * (rodeo_frame_time_get() / (1000.0f/60.0f) * ((60.0f - (float)player.sprite.iter) / 60.0f)) * 7;