diff options
| author | Dominik Kaiser | 2024-05-10 13:07:27 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-05-10 13:07:27 +0200 |
| commit | c821373154aa7e475020c051f884416c68969abe (patch) | |
| tree | 136608d11dcb6a88ae031117149df860e337b64a /include | |
| parent | 10b5c3a64680c4dc741cb41c5950abccbf310c7e (diff) | |
| download | so_long-c821373154aa7e475020c051f884416c68969abe.tar.gz so_long-c821373154aa7e475020c051f884416c68969abe.zip | |
Add delta_time to player movement
Diffstat (limited to 'include')
| -rw-r--r-- | include/so_long.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/so_long.h b/include/so_long.h index 7365a30..d66e355 100644 --- a/include/so_long.h +++ b/include/so_long.h @@ -13,7 +13,7 @@ #ifndef SO_LONG_H # define SO_LONG_H -# define PLAYER_MOVE_SPEED 3 +# define PLAYER_MOVE_SPEED 250 # include "MLX42/MLX42.h" # include "libft.h" @@ -28,8 +28,8 @@ enum e_direction typedef struct s_vector { - int x; - int y; + double x; + double y; } t_vector; typedef struct s_player |
