From 4ad82585d86b08940b3c7e756a10190f7921af54 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 17 Apr 2025 17:51:10 +0200 Subject: [PATCH] comment compass --- w/w.c | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/w/w.c b/w/w.c index 486f5c0..87c5bd6 100644 --- a/w/w.c +++ b/w/w.c @@ -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) {