Overhaul human animations
This commit is contained in:
parent
8b38a2f6b8
commit
9228fd43ee
@ -105,6 +105,20 @@
|
||||
"name" : "Armature|WalkStart",
|
||||
"length" : 1,
|
||||
"loops" : false
|
||||
},
|
||||
"sprintSystem" : {
|
||||
"maxVelocity" : 5.8,
|
||||
"staminaMax" : 500,
|
||||
"animationStartUp" : {
|
||||
"name" : "SprintStart",
|
||||
"length" : 1,
|
||||
"loops" : false
|
||||
},
|
||||
"animationMain" : {
|
||||
"name" : "Sprint",
|
||||
"length" : 1,
|
||||
"loops" : false
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -42,9 +42,9 @@
|
||||
"type" : "CUBE",
|
||||
"dimension1" : 0.1,
|
||||
"dimension2" : 0.1,
|
||||
"dimension3" : 0.1,
|
||||
"dimension3" : 0.35,
|
||||
"offsetX" : 0,
|
||||
"offsetY" : 0.1,
|
||||
"offsetY" : 0.05,
|
||||
"offsetZ" : 0
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -372,14 +372,15 @@ public class ControlHandler {
|
||||
if(controls.get(INPUT_CODE_SPRINT).isIsKey() && glfwGetKey(Globals.window, controls.get(INPUT_CODE_SPRINT).getKeyValue()) == GLFW_PRESS){
|
||||
if(controls.get(INPUT_CODE_SPRINT).isState() == false){
|
||||
if(sprintTree != null){
|
||||
System.out.println("Sprint code");
|
||||
sprintTree.start();
|
||||
}
|
||||
}
|
||||
controls.get(INPUT_CODE_SPRINT).setState(true);
|
||||
} else {
|
||||
if(controls.get(INPUT_CODE_SPRINT).isState() == true){
|
||||
sprintTree.stop();
|
||||
if(sprintTree != null){
|
||||
sprintTree.stop();
|
||||
}
|
||||
}
|
||||
controls.get(INPUT_CODE_SPRINT).setState(false);
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ public class ServerConnectionHandler implements Runnable {
|
||||
Player newPlayerObject = new Player(this);
|
||||
Globals.playerManager.addPlayer(newPlayerObject);
|
||||
//spawn player in world
|
||||
Entity newPlayerCharacter = CreatureUtils.spawnBasicCreature("Goblin");
|
||||
Entity newPlayerCharacter = CreatureUtils.spawnBasicCreature("Human");
|
||||
playerCharacterID = newPlayerCharacter.getId();
|
||||
CollisionObjUtils.positionCharacter(newPlayerCharacter, new Vector3f(Globals.spawnPoint.x,Globals.spawnPoint.y,Globals.spawnPoint.z));
|
||||
//attach player object to player character
|
||||
|
||||
Loading…
Reference in New Issue
Block a user