summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-09 19:25:14 +0200
committerDominik Kaiser2024-05-09 19:25:14 +0200
commit9306ce8b7950960d72a8e0871d917df181d900fa (patch)
treef91e174eb0340a7a931311c520947d1f4a5bab01 /include
parente2c309d1bec9fb18e39d453a1dfdccfa877f5633 (diff)
downloadso_long-9306ce8b7950960d72a8e0871d917df181d900fa.tar.gz
so_long-9306ce8b7950960d72a8e0871d917df181d900fa.zip
Add player image
Diffstat (limited to 'include')
-rw-r--r--include/so_long.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/so_long.h b/include/so_long.h
index 1661dbe..bff3115 100644
--- a/include/so_long.h
+++ b/include/so_long.h
@@ -6,13 +6,15 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 14:14:02 by dkaiser #+# #+# */
-/* Updated: 2024/05/09 17:59:42 by dkaiser ### ########.fr */
+/* Updated: 2024/05/09 19:24:00 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SO_LONG_H
# define SO_LONG_H
+# define PLAYER_MOVE_SPEED 3
+
# include "libft.h"
# include "mlx.h"
@@ -36,6 +38,7 @@ typedef struct s_player
t_vector position;
t_vector direction;
t_vector velocity;
+ void *img;
} t_player;
typedef struct s_game