Added camera movement while paused

This commit is contained in:
Anuken
2019-12-29 15:40:56 -05:00
parent 6edcbb9120
commit 811c22b84e
5 changed files with 13 additions and 11 deletions

View File

@ -136,9 +136,9 @@ public class DesktopInput extends InputHandler{
ui.listfrag.toggle();
}
if(player.getClosestCore() == null && !ui.chatfrag.shown()){
if((player.getClosestCore() == null || state.isPaused()) && !ui.chatfrag.shown()){
//move camera around
float camSpeed = 6f;
float camSpeed = !Core.input.keyDown(Binding.dash) ? 3f : 8f;
Core.camera.position.add(Tmp.v1.setZero().add(Core.input.axis(Binding.move_x), Core.input.axis(Binding.move_y)).nor().scl(Time.delta() * camSpeed));
}