rm findplayer but add it in read, + get all targets

This commit is contained in:
2024-12-12 18:47:59 +01:00
parent 5274a135d6
commit ee26a60a09
5 changed files with 33 additions and 28 deletions

View File

@@ -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 )