convert core to new format, improve tower placement
This commit is contained in:
parent
2808f6dd2c
commit
bc02db7b26
12 changed files with 250 additions and 107 deletions
|
|
@ -13,6 +13,7 @@ pub enum InputAction {
|
|||
CameraPanY,
|
||||
CameraPanEnable,
|
||||
CameraOrbitEnable,
|
||||
PlaceTower,
|
||||
}
|
||||
|
||||
impl Default for InputMap {
|
||||
|
|
@ -38,6 +39,10 @@ impl Default for InputMap {
|
|||
InputMethod::MouseButton(MouseButton::Left),
|
||||
InputAction::CameraPanEnable,
|
||||
),
|
||||
(
|
||||
InputMethod::MouseButton(MouseButton::Right),
|
||||
InputAction::PlaceTower,
|
||||
),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue