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(); drawpov3d();
// todo: would need a compass? // todo: would need a compass?
printf("\n\n Orientation : "); /*printf("\n\n");
switch (state.position.orientation) switch (state.position.orientation)
{ {
case NORTH: printf("nord"); break; case NORTH:
case EAST: printf("est"); break; printf(" ^\n");
case SOUTH: printf("sud"); break; printf(" - -\n");
case WEST: printf("ouest"); break; 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) if (charatpos(state.position.x, state.position.y) == TILE_START)
{ {