Пример #1
0
 public override void update(GameTime gameTime, GameState.AbstractGameState gameState)
 {
     foreach (int id in entityIds[0])
     {
         gameState.getCamera().setDesiredZoom(1.5f);
         LocationComponent tracking = entityManager.getEntity(id)
             .getComponent<LocationComponent>();
         if (tracking != null)
         {
             gameState.getCamera().setDesiredWorldPosition(tracking.getCurrentLocation());
         }
         return;
     }
 }