diff options
| author | realtradam <[email protected]> | 2023-05-30 04:38:48 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-05-30 04:38:48 -0400 |
| commit | bc1d804c8a5e5e126c492f29a1d1e8d70d1cb66a (patch) | |
| tree | 083fec7eaa73a1bf6d20b419188fd5e47eb7b5fe | |
| parent | 7076731c7f72fc4ea3049626475483e91aa11344 (diff) | |
| download | rodeo_sample_game-bc1d804c8a5e5e126c492f29a1d1e8d70d1cb66a.tar.gz rodeo_sample_game-bc1d804c8a5e5e126c492f29a1d1e8d70d1cb66a.zip | |
remove printing
| -rw-r--r-- | src/player.c | 7 |
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; |
