Package com.badlogic.gdx.graphics

Examples of com.badlogic.gdx.graphics.OrthographicCamera


  }

  @Override
  public void show() {
    particles.initialize();
    camera = new OrthographicCamera(WORLD_WIDTH, WORLD_HEIGHT);
    camera.position.set(0, (WORLD_HEIGHT / 2) - 1, 0);
    createWorld();
    batch = new SpriteBatch(SIZE);
    font = new BitmapFont();
    Gdx.input.setInputProcessor(this);
View Full Code Here


    messages = world.getMessages();
    infoBoxMessages = world.getInfoBoxMessages();
    buttons = world.getButtons();
    items = world.getItems();

    cam = new OrthographicCamera();
    cam.setToOrtho(false, width, height);
    // cam.position.

    // used to change alpha
    color = new Color();
View Full Code Here

    world.setRenderer(this);
   
    width = Gdx.graphics.getWidth() / 40;
    height = Gdx.graphics.getHeight() / 40;
   
    cam = new OrthographicCamera();
    cam.setToOrtho(false, width, height);
    cam.update();
   
    batch = new SpriteBatch();
    batch.setProjectionMatrix(cam.combined);   
View Full Code Here

    this.height = height;

    root = new Group();
    root.setStage(this);

    camera = new OrthographicCamera();
    setViewport(width, height, keepAspectRatio);
  }
View Full Code Here

        Texture.setEnforcePotImages(false);

        font = new BitmapFont(Gdx.files.internal("ui/default.fnt"));

        // Crea una cámara y muestra 30x20 unidades del mundo
        camera = new OrthographicCamera();
        camera.setToOrtho(false, 30, 20);
        camera.update();
        CAMERA_OFFSET = 0;

        // Activa face culling
View Full Code Here

  private Actor keyboardFocus, scrollFocus;
  private final SnapshotArray<TouchFocus> touchFocuses = new SnapshotArray(true, 4, TouchFocus.class);

  /** Creates a stage with a {@link ScalingViewport} set to {@link Scaling#fill}. The stage will use its own {@link Batch}. */
  public Stage () {
    this(new ScalingViewport(Scaling.stretch, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), new OrthographicCamera()),
      null);
  }
View Full Code Here

    public void create () {
      if (spriteBatch != null) return;

      spriteBatch = new SpriteBatch();

      worldCamera = new OrthographicCamera();
      textCamera = new OrthographicCamera();

      pixelsPerMeter = new NumericValue();
      pixelsPerMeter.setValue(1.0f);
      pixelsPerMeter.setAlwaysActive(true);
View Full Code Here

      Texture.setEnforcePotImages(false);

      spriteBatch = new SpriteBatch();

      worldCamera = new OrthographicCamera();
      textCamera = new OrthographicCamera();

      pixelsPerMeter = new NumericValue();
      pixelsPerMeter.setValue(1.0f);
      pixelsPerMeter.setAlwaysActive(true);
View Full Code Here

    public void create () {
      if (spriteBatch != null) return;

      spriteBatch = new SpriteBatch();

      worldCamera = new OrthographicCamera();
      textCamera = new OrthographicCamera();

      pixelsPerMeter = new NumericValue();
      pixelsPerMeter.setValue(1.0f);
      pixelsPerMeter.setAlwaysActive(true);
View Full Code Here

  @Override
  public void create() {
   
    MathUtils.random.setSeed(Long.MIN_VALUE);

    camera = new OrthographicCamera(viewportWidth, viewportHeight);
    camera.position.set(0, viewportHeight / 2f, 0);
    camera.update();
   
    batch = new SpriteBatch();
    font = new BitmapFont();
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.OrthographicCamera

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.