minor work on entities and added speed control to polyjet entity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user