18 lines
383 B
C
18 lines
383 B
C
#include <stdio.h>
|
|
#include "function.h"
|
|
#include "display.h"
|
|
#include "read.h"
|
|
|
|
int main()
|
|
{
|
|
unsigned short int **tab2d = creatArea2D(32);
|
|
fileToTab2D("test.txt", tab2d, 32);
|
|
screenDisplay(tab2d, 32);
|
|
printf("main\n");
|
|
vect *playerPos = (vect *)malloc(sizeof(vect));
|
|
getStartPlayerPos(tab2d,32,playerPos);
|
|
inGameLoop(tab2d,playerPos);
|
|
free(playerPos);
|
|
return 0;
|
|
}
|