src/visualiser.c
static void handle_movement(int x_delta, int y_delta) {
  if (valid_pos(tiles, player.position.x + x_delta,
                player.position.y + y_delta)) {
    player.position.x += x_delta;
    player.position.y += y_delta;
  }
}
/** Performs a player movement if valid. */
Performs a player movement if valid.
Performs a player movement if valid .
static void handle_movement(int x_delta, int y_delta) {
  if (valid_pos(tiles, player.position.x + x_delta,
                player.position.y + y_delta)) {
    player.position.x += x_delta;
    player.position.y += y_delta;
  }
}
static void handle_movement ( int x_delta , int y_delta ) { if ( valid_pos ( tiles , player . position . x + x_delta , player . position . y + y_delta ) ) { player . position . x += x_delta ; player . position . y += y_delta ; } }
Performs a player movement if valid.
Performs a player movement if valid .