Package ru.snake.spritepacker.core

Examples of ru.snake.spritepacker.core.Animation.translate()


      Point currentOffset = animation.getOffset();

      int offsetX = baseOffset.x - currentOffset.x;
      int offsetY = baseOffset.y - currentOffset.y;

      animation.translate(offsetX, offsetY);
    }

    factory.updateAnimations();
  }
View Full Code Here


    if (result != JOptionPane.YES_OPTION) {
      sprite.offsetX = baseOffsetX;
      sprite.offsetY = baseOffsetY;
    } else {
      animation.translate(0, 0);
    }

    factory.updateSprites();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.