This commit is contained in:
quenousimporte 2025-03-30 20:01:18 +02:00
parent 1a55403d9d
commit 635aedce92
1 changed files with 14 additions and 9 deletions

23
w/w.c
View File

@ -2,16 +2,16 @@
#include <string.h>
#include <stdlib.h>
#define CMD_LEN 10
#define NAME_LEN 10
#define POV_3D_SIZE 10
#define POV_SIZE 3
#define NULL_CMD "-"
#define CMD_LEN 10
#define NAME_LEN 10
#define POV_3D_SIZE 10
#define POV_SIZE 3
#define NULL_CMD "-"
#define PLACE_TITLE 0
#define PLACE_SETNAME 1
#define PLACE_STATION 2
#define PLACE_MAP 3
#define PLACE_TITLE 0
#define PLACE_SETNAME 1
#define PLACE_STATION 2
#define PLACE_MAP 3
typedef struct {
int x;
@ -233,6 +233,11 @@ void update3dpov()
}
}
char currentchar()
{
return charatpos(state.location.x, state.location.y);
}
void updatepov()
{
int x = state.location.x;