Skip to content

Commit

Permalink
Fixed an error. This shader isn't used yet, but could be in the future.
Browse files Browse the repository at this point in the history
  • Loading branch information
assofohdz committed Feb 26, 2023
1 parent 89d2c78 commit 515eee1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion infinity/assets/MatDefs/AnimateOnceSpriteShader.vert
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void main(){
int selectedTileX = int(mod(float(tileDistance), m_numTilesX));
int selectedTileY = int(mod(float(tileDistance), m_numTilesY));

completed = (tileDistance / m_numTilesX ;
completed = (tileDistance / m_numTilesX);

texCoordAni.x = (float(float(inTexCoord.x/m_numTilesX) + float(selectedTileX)/float(m_numTilesX)));
texCoordAni.y = (float(float(inTexCoord.y/m_numTilesY) + float(selectedTileY)/float(m_numTilesY)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,6 @@ public static void initializeDefaultMappings(final InputMapper inputMapper) {
inputMapper.map(F_GRAVBOMB, KeyInput.KEY_BACKSLASH);
}

if (!inputMapper.hasMappings(F_GRAVBOMB)) {
inputMapper.map(F_GRAVBOMB, KeyInput.KEY_BACKSLASH);
}

if (!inputMapper.hasMappings(F_MINE)) {
inputMapper.map(F_MINE, KeyInput.KEY_TAB);
}

if (!inputMapper.hasMappings(F_SHOOT)) {
inputMapper.map(F_SHOOT, KeyInput.KEY_LCONTROL);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,17 @@ private void setLocation(Vector3f loc) {
public void valueActive(FunctionId func, double value, double tpf) {
if (func == AvatarMovementFunctions.F_GRAVBOMB) {
session.attack(WeaponsSystem.GRAVBOMB);
} else if (func == AvatarMovementFunctions.F_MINE && shiftPressed) {
} else if (func == AvatarMovementFunctions.F_BOMB && !shiftPressed) {
session.attack(WeaponsSystem.BOMB);
} else if (func == AvatarMovementFunctions.F_BOMB && shiftPressed) {
session.attack(WeaponsSystem.MINE);
} else if (func == AvatarMovementFunctions.F_THOR) {
session.action(ActionSystem.FIRETHOR);
} else if (func == AvatarMovementFunctions.F_REPEL) {
session.action(ActionSystem.REPEL);
} else if (func == AvatarMovementFunctions.F_BURST) {
session.action(ActionSystem.FIREBURST);
} else if (func == AvatarMovementFunctions.F_BOMB && !shiftPressed) {
session.attack(WeaponsSystem.BOMB);
} else if (func == AvatarMovementFunctions.F_SHOOT && !shiftPressed) {
} else if (func == AvatarMovementFunctions.F_SHOOT && !shiftPressed) {
session.attack(WeaponsSystem.GUN);
}
}
Expand Down

0 comments on commit 515eee1

Please sign in to comment.