src/draw.c
void movePlayerInHallways(char input, int * posY, int * posX)
{
    switch(input)
    {
        case 'w':
            mvaddch(*posY, *posX, '#');
            *posY -= 1;
            break;
        case 'a':
            mvaddch(*posY, *posX, '#');
            *posX -= 1;
            break;
        case 's':
            mvaddch(*posY, *posX, '#');
            *posY += 1;
            break;
        case 'd':
            mvaddch(*posY, *posX, '#');
            *posX += 1;
            break;
        default:
            return;
    }
    mvaddch(*posY, *posX, '@');
    move(*posY, *posX);
}
//seperate move function to handle moving around within hallways
seperate move function to handle moving around within hallways
seperate move function to handle moving around within hallways
void movePlayerInHallways(char input, int * posY, int * posX)
{
    switch(input)
    {
        case 'w':
            mvaddch(*posY, *posX, '#');
            *posY -= 1;
            break;
        case 'a':
            mvaddch(*posY, *posX, '#');
            *posX -= 1;
            break;
        case 's':
            mvaddch(*posY, *posX, '#');
            *posY += 1;
            break;
        case 'd':
            mvaddch(*posY, *posX, '#');
            *posX += 1;
            break;
        default:
            return;
    }
    mvaddch(*posY, *posX, '@');
    move(*posY, *posX);
}
void movePlayerInHallways ( char input , int * posY , int * posX ) { switch ( input ) { case ' ' : mvaddch ( * posY , * posX , ' ' ) ; * posY -= 1 ; break ; case ' ' : mvaddch ( * posY , * posX , ' ' ) ; * posX -= 1 ; break ; case ' ' : mvaddch ( * posY , * posX , ' ' ) ; * posY += 1 ; break ; case ' ' : mvaddch ( * posY , * posX , ' ' ) ; * posX += 1 ; break ; default : return ; } mvaddch ( * posY , * posX , ' ' ) ; move ( * posY , * posX ) ; }
seperate move function to handle moving around within hallways
seperate move function to handle moving around within hallways