Files
Sokoban/main.c
2024-12-12 20:46:48 +01:00

20 lines
470 B
C

#include <stdio.h>
#include "function.h"
#include "read.h"
#include "display.h"
#define SIZE_PLAY 24
int main()
{
vect *playerPos = (vect *)malloc(sizeof(vect));
vect *targets;
int nbr_targets;
unsigned short int **tab2d = creatArea2D(SIZE_PLAY);
targets = fileToTab2D("test.txt", tab2d, SIZE_PLAY, playerPos, &nbr_targets);
screenDisplay(tab2d, SIZE_PLAY);
inGameLoop(tab2d, SIZE_PLAY, playerPos, targets, nbr_targets);
free(playerPos);
return 0;
}