1
Fork 0

Transition camera to new unit when starting a new turn

This commit is contained in:
Joshua Goins 2022-05-02 13:22:31 -04:00
parent 2db1135447
commit 209f3d4d3b

View file

@ -88,7 +88,6 @@ public class GameScreen implements Screen {
arrowAtlas = new TextureAtlas("test.atlas"); arrowAtlas = new TextureAtlas("test.atlas");
startNewTeamTurn(Unit.Team.Player); startNewTeamTurn(Unit.Team.Player);
smoothlyTransitionCamera(new Vector3(currentUnit.positionX * 32, currentUnit.positionY * 32, 0));
} }
@Override @Override
@ -113,6 +112,8 @@ public class GameScreen implements Screen {
currentUnitIndex = 0; currentUnitIndex = 0;
getNextUnit(); getNextUnit();
smoothlyTransitionCamera(new Vector3(currentUnit.positionX * 32, currentUnit.positionY * 32, 0));
} }
void updateUnits() { void updateUnits() {