summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-09 16:19:29 +0200
committerDominik Kaiser2024-05-09 16:19:29 +0200
commit8cec16bdb6f980565b29d5b55379e481018753f6 (patch)
tree44749e569e77339b4830c979572563bb88d3c9dd /src/main.c
parent7b7f18ebf7636b656788d8f0bfea5ab2662fd8dc (diff)
downloadso_long-8cec16bdb6f980565b29d5b55379e481018753f6.tar.gz
so_long-8cec16bdb6f980565b29d5b55379e481018753f6.zip
Setup basic structure and add basic input handling
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index e76703f..db6b524 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,13 +6,17 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 14:14:13 by dkaiser #+# #+# */
-/* Updated: 2024/05/08 15:56:23 by dkaiser ### ########.fr */
+/* Updated: 2024/05/09 15:15:29 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
+#include "mlx.h"
#include "so_long.h"
-int main(void) {
+int main(void)
+{
+ t_game game;
- return 0;
+ init(&game);
+ mlx_loop(game.mlx);
}