#include #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); printf("player (%d, %d)", playerPos->x, playerPos->y); inGameLoop(tab2d, SIZE_PLAY, playerPos, targets, nbr_targets); free(playerPos); return 0; }