From 1ed00daee8f7cb0194d11a2aa32fc8ffc544ae98 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sun, 1 Nov 2020 22:53:24 +0100 Subject: Add basic deletion tool --- src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/editor.rs') diff --git a/src/editor.rs b/src/editor.rs index 09f7e0d..a68bb25 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -36,6 +36,8 @@ impl Editor { ToolType::RoomTool as usize } else if rl.is_key_pressed(KeyboardKey::KEY_W) { ToolType::WallTool as usize + } else if rl.is_key_pressed(KeyboardKey::KEY_D) { + ToolType::DeletionTool as usize } else { self.active }; -- cgit v1.2.3-70-g09d2