Transition camera to new unit when starting a new turn
This commit is contained in:
parent
2db1135447
commit
209f3d4d3b
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Reference in a new issue