key inv display

This commit is contained in:
2026-06-23 01:56:45 -05:00
parent 2e160d6c61
commit 2ea2ce0212
4 changed files with 82 additions and 7 deletions
+5 -1
View File
@@ -100,6 +100,10 @@ impl EditorState {
/// Builds an editor session for `world`, starting on its designated start board.
pub(crate) fn new(world: World) -> Self {
let board_name = world.start.clone();
let cursor = {
let b = world.boards[&board_name].borrow();
(b.width as i32 / 2, b.height as i32 / 2)
};
Self {
world,
board_name,
@@ -107,7 +111,7 @@ impl EditorState {
dialog: None,
code_editor: None,
glyph_dialog: None,
cursor: (0, 0),
cursor,
current_archetype: Archetype::Wall,
current_glyph: Archetype::Wall.default_glyph(),
draw_mode: false,