Overhaul human animations

This commit is contained in:
austin 2021-11-19 21:01:26 -05:00
parent 8b38a2f6b8
commit 9228fd43ee
5 changed files with 20 additions and 5 deletions

View File

@ -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
}
}
}
],

View File

@ -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.

View File

@ -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);
}

View File

@ -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