Package com.badlogic.gdx.graphics.g2d

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


    position = new Vector2();
    velocity = new Vector2();
    faceLeft = true;
     
    // Textura del item
    currentFrame = new Sprite(ResourceManager.getAtlas("items/items.pack").findRegion("mushroom"));
   
    velocity.x = -1.0f;
    isAlive = true;
  }
View Full Code Here


        FileHandle file;
        if (imagePath.equals(ParticleEditor.DEFAULT_PARTICLE) || imagePath.equals(ParticleEditor.DEFAULT_PREMULT_PARTICLE))
          file = Gdx.files.classpath(imagePath);
        else
          file = Gdx.files.absolute(imagePath);
        emitter.setSprite(new Sprite(new Texture(file)));
      } catch (GdxRuntimeException ex) {
        ex.printStackTrace();
        EventQueue.invokeLater(new Runnable() {
          public void run () {
            JOptionPane.showMessageDialog(ParticleEditor.this, "Error loading image:\n" + imagePath);
View Full Code Here

        FileHandle file;
        if (imagePath.equals("particle.png"))
          file = Gdx.files.classpath(imagePath);
        else
          file = Gdx.files.absolute(imagePath);
        emitter.setSprite(new Sprite(new Texture(file)));
      } catch (GdxRuntimeException ex) {
        ex.printStackTrace();
        EventQueue.invokeLater(new Runnable() {
          public void run () {
            JOptionPane.showMessageDialog(ParticleEditor.this, "Error loading image:\n" + imagePath);
View Full Code Here

        FileHandle file;
        if (imagePath.equals(ParticleEditor.DEFAULT_PARTICLE))
          file = Gdx.files.classpath(imagePath);
        else
          file = Gdx.files.absolute(imagePath);
        emitter.setSprite(new Sprite(new Texture(file)));
      } catch (GdxRuntimeException ex) {
        ex.printStackTrace();
        EventQueue.invokeLater(new Runnable() {
          public void run () {
            JOptionPane.showMessageDialog(ParticleEditor.this, "Error loading image:\n" + imagePath);
View Full Code Here

   
    batch = new SpriteBatch();
    batch.getProjectionMatrix().setToOrtho2D(0, 0, 800, 480);
    fontbatch = new SpriteBatch();

    blackFade = new Sprite(
        new Texture(Gdx.files.internal("data/black.png")));
    fadeBatch = new SpriteBatch();
    fadeBatch.getProjectionMatrix().setToOrtho2D(0, 0, 1, 1);

    font = Resources.getInstance().font;
View Full Code Here

   
    batch = new SpriteBatch();
    batch.getProjectionMatrix().setToOrtho2D(0, 0, 800, 480);
    fontbatch = new SpriteBatch();

    blackFade = new Sprite(
        new Texture(Gdx.files.internal("data/black.png")));
    fadeBatch = new SpriteBatch();
    fadeBatch.getProjectionMatrix().setToOrtho2D(0, 0, 1, 1);

    font = Resources.getInstance().font;
View Full Code Here

   
    batch = new SpriteBatch();
    batch.getProjectionMatrix().setToOrtho2D(0, 0, 800, 480);
    fontbatch = new SpriteBatch();

    blackFade = new Sprite(
        new Texture(Gdx.files.internal("data/black.png")));
    fadeBatch = new SpriteBatch();
    fadeBatch.getProjectionMatrix().setToOrtho2D(0, 0, 1, 1);

    font = Resources.getInstance().font;
View Full Code Here

TOP

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

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.