Package com.badlogic.gdx.graphics.g2d

Examples of com.badlogic.gdx.graphics.g2d.SpriteBatch


  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


    splashSprite = new Sprite(splashTexture);
    splashSprite.setColor(1, 1, 1, 0);
    splashSprite.setX(Gdx.graphics.getWidth() / 2 - (splashSprite.getWidth() / 2));
    splashSprite.setY(Gdx.graphics.getHeight() / 2 - (splashSprite.getHeight() / 2));

    batch = new SpriteBatch();

    Tween.registerAccessor(Sprite.class, new SpriteTween());

    manager = new TweenManager();
View Full Code Here

    stage.addActor(label);
  }

  @Override
  public void show() {
    batch = new SpriteBatch();
    skin = new Skin();
    atlas = new TextureAtlas("data/buttons/button.pack");
    skin.addRegions(atlas);
    bonzai = new BitmapFont(Gdx.files.internal("data/fonts/bonzai32.fnt"),
        Gdx.files.internal("data/fonts/bonzai32.png"), false);
View Full Code Here

    // cam.position.

    // used to change alpha
    color = new Color();

    batch = new SpriteBatch();
    batch.setProjectionMatrix(cam.combined);
    stage = new Stage(width, height, false, batch);

    // ====Fonts
    bonzai32 = Configuration.bonzai32;
View Full Code Here

  TextureAtlas atlas;
  Skeleton skeleton;
  AnimationState state;

  public void create () {
    batch = new SpriteBatch();
    renderer = new SkeletonRenderer();
    debugRenderer = new SkeletonRendererDebug();

    atlas = new TextureAtlas(Gdx.files.internal("spineboy.atlas"));
    SkeletonJson json = new SkeletonJson(atlas);
View Full Code Here

  SkeletonData skeletonData;
  Skeleton skeleton;
  Animation animation;

  public void create () {
    batch = new SpriteBatch();
    renderer = new SkeletonRenderer();
    debugRenderer = new SkeletonRendererDebug();

    final String name = "goblins"; // "spineboy";
View Full Code Here

  Skeleton skeleton;
  Animation walkAnimation;
  Animation jumpAnimation;

  public void create () {
    batch = new SpriteBatch();
    renderer = new SkeletonRenderer();
    debugRenderer = new SkeletonRendererDebug();

    final String name = "spineboy";
View Full Code Here

    splashSprite = new Sprite(splashTexture);
    splashSprite.setColor(1, 1, 1, 0);
    splashSprite.setX(Gdx.graphics.getWidth() / 2 - (splashSprite.getWidth() / 2));
    splashSprite.setY(Gdx.graphics.getHeight() / 2 - (splashSprite.getHeight() / 2));
   
    batch = new SpriteBatch();
   
    Tween.registerAccessor(Sprite.class, new SpriteTween());
   
    manager = new TweenManager();
   
View Full Code Here

    stage.addActor(label);
  }

  @Override
  public void show() {
    batch = new SpriteBatch();
    atlas = new TextureAtlas("data/button.pack");
    skin = new Skin();
    skin.addRegions(atlas);
    white = new BitmapFont(Gdx.files.internal("data/whitefont.fnt"), false);
    black = new BitmapFont(Gdx.files.internal("data/font.fnt"), false);
View Full Code Here

   
    cam = new OrthographicCamera();
    cam.setToOrtho(false, width, height);
    cam.update();
   
    batch = new SpriteBatch();
    batch.setProjectionMatrix(cam.combined);   
   
    shipTexture = new Texture("data/ship.png");
    shipTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
   
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g2d.SpriteBatch

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.