rm findplayer but add it in read, + get all targets
This commit is contained in:
15
function.c
15
function.c
@@ -145,21 +145,6 @@ void move(unsigned short int **tab,vect *playerPos, vect direction)
|
||||
|
||||
}
|
||||
|
||||
void getStartPlayerPos(unsigned short int **tab2d, short int size, vect *playerPos )
|
||||
{
|
||||
for(int i=0;i<size;++i)
|
||||
{
|
||||
for(int j=0;j<size;++j)
|
||||
{
|
||||
if(tab2d[i][j]==PLAYER)
|
||||
{
|
||||
playerPos->x=i;
|
||||
playerPos->y=j;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void inGameLoop(unsigned short int **tab2d,vect *playerPos )
|
||||
|
||||
Reference in New Issue
Block a user