comment compass

This commit is contained in:
quenousimporte 2025-04-17 17:51:10 +02:00
parent 92b35d1ce3
commit 4ad82585d8
1 changed files with 22 additions and 6 deletions

28
w/w.c
View File

@ -890,14 +890,30 @@ void draw()
drawpov3d();
// todo: would need a compass?
printf("\n\n Orientation : ");
/*printf("\n\n");
switch (state.position.orientation)
{
case NORTH: printf("nord"); break;
case EAST: printf("est"); break;
case SOUTH: printf("sud"); break;
case WEST: printf("ouest"); break;
}
case NORTH:
printf(" ^\n");
printf(" - -\n");
printf(" -\n");
break;
case EAST:
printf(" -\n");
printf(" - >\n");
printf(" -\n");
break;
case SOUTH:
printf(" -\n");
printf(" - -\n");
printf(" v\n");
break;
case WEST:
printf(" -\n");
printf(" < -\n");
printf(" -\n");
break;
}*/
if (charatpos(state.position.x, state.position.y) == TILE_START)
{