Implemented basic minimap
This commit is contained in:
@@ -18,6 +18,7 @@ public class DefaultKeybinds {
|
||||
"shoot", Input.MOUSE_LEFT,
|
||||
"zoom_hold", Input.CONTROL_LEFT,
|
||||
"zoom", new Axis(Input.SCROLL),
|
||||
"zoom_minimap", new Axis(Input.MINUS, Input.PLUS),
|
||||
"menu", Gdx.app.getType() == ApplicationType.Android ? Input.BACK : Input.ESCAPE,
|
||||
"pause", Input.SPACE,
|
||||
"dash", Input.SHIFT_LEFT,
|
||||
|
||||
@@ -81,6 +81,8 @@ public class DesktopInput extends InputHandler{
|
||||
zoomed = false;
|
||||
}
|
||||
|
||||
renderer.minimap().zoomBy(-(int)Inputs.getAxisTapped("zoom_minimap"));
|
||||
|
||||
if(!rotated) {
|
||||
rotation += Inputs.getAxis("rotate_alt");
|
||||
rotated = true;
|
||||
|
||||
Reference in New Issue
Block a user