diff options
| author | Dominik Kaiser | 2024-05-10 13:20:11 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-05-10 13:20:11 +0200 |
| commit | 18c61f3119e468e9a9418aef8aaeadcef090895c (patch) | |
| tree | 584d802ba408c056252e13152ecd6a68bb7dce79 /src/loop.c | |
| parent | 0c1690ca589a1e8c147f96960546e09c3e8bc4fd (diff) | |
| download | so_long-18c61f3119e468e9a9418aef8aaeadcef090895c.tar.gz so_long-18c61f3119e468e9a9418aef8aaeadcef090895c.zip | |
Make loop.c norme conform
Diffstat (limited to 'src/loop.c')
| -rw-r--r-- | src/loop.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/09 15:09:24 by dkaiser #+# #+# */ -/* Updated: 2024/05/10 12:31:15 by dkaiser ### ########.fr */ +/* Updated: 2024/05/10 13:18:51 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,7 +22,9 @@ void loop(void *params) - ((game->input_direction & LEFT) != 0); game->player.direction.y = ((game->input_direction & DOWN) != 0) - ((game->input_direction & UP) != 0); - game->player.position.x += game->player.direction.x * PLAYER_MOVE_SPEED * game->mlx->delta_time; - game->player.position.y += game->player.direction.y * PLAYER_MOVE_SPEED * game->mlx->delta_time; + game->player.position.x += game->player.direction.x * PLAYER_MOVE_SPEED + * game->mlx->delta_time; + game->player.position.y += game->player.direction.y * PLAYER_MOVE_SPEED + * game->mlx->delta_time; draw(game); } |
