tooltips for overmap tiles, and distinct fg-bg offsets

This commit is contained in:
Llywelwyn 2023-08-27 18:04:53 +01:00
parent 2890c16a3c
commit 537e19c4e7
8 changed files with 84 additions and 43 deletions

View file

@ -439,6 +439,9 @@ pub fn try_move_player(delta_x: i32, delta_y: i32, ecs: &mut World) -> RunState
let mut ppos = ecs.write_resource::<Point>();
ppos.x = pos.x;
ppos.y = pos.y;
if map.tiles[new_idx] == TileType::ToOvermap(map.id) {
return RunState::GoToLevel(ID_OVERMAP, TileType::ToLocal(map.id));
}
return RunState::Ticking;
}
}