minor work on entities and added speed control to polyjet entity

This commit is contained in:
2017-06-02 09:28:53 -05:00
parent f5352b8e22
commit 1832f32b6a
4 changed files with 34 additions and 6 deletions

View File

@@ -23,6 +23,8 @@ public class KeyMap {
public static final String SECONDTHIRDTELEPORT = "secondThirdTP";
public static final String THIRDTHIRDTELEPORT = "thirdThirdTP";
public static final String ACCELERATE = "accelerate";
/**
* forward binding.
*/
@@ -56,6 +58,8 @@ public class KeyMap {
*/
public static int thirdThirdTeleport;
public static int accelerate;
public KeyMap(Polyjet core) {
keyTextures = core.getAssetManager().get("keyboard.atlas", TextureAtlas.class);
@@ -108,6 +112,8 @@ public class KeyMap {
firstThirdTeleport = keyBindPrefs.getInteger(KeyMap.FIRSTTHIRDTELEPORT, Keys.Q);
secondThirdTeleport = keyBindPrefs.getInteger(KeyMap.SECONDTHIRDTELEPORT, Keys.W);
thirdThirdTeleport = keyBindPrefs.getInteger(KeyMap.THIRDTHIRDTELEPORT, Keys.E);
accelerate = keyBindPrefs.getInteger(KeyMap.ACCELERATE, Keys.SHIFT_LEFT);
}
/**
@@ -135,6 +141,8 @@ public class KeyMap {
return KeyMap.secondThirdTeleport;
} else if (control == KeyMap.THIRDTHIRDTELEPORT) {
return KeyMap.thirdThirdTeleport;
} else if (control == KeyMap.ACCELERATE) {
return KeyMap.accelerate;
} else {
return -1;
}