Examples of Animation


Examples of orxanimeditor.data.v1.Animation

    Animation[] animations = set.getAnimations();
    if(animations.length>0) {
      String key = "AnimationList";
      String value = "";
      for(int ai=0; ai<animations.length; ai++) {
        Animation animation = animations[ai];
        value+=animation.getName();
        if(ai!=animations.length-1) value+="#";
      }
      d.printKeyValue(key, value);
    }
    Link[] links = set.getLinks();
View Full Code Here

Examples of ru.snake.spritepacker.core.Animation

    setIcon(ICON_NAME, true);
  }

  @Override
  public void actionPerformed(ActionEvent arg0) {
    Animation animation = factory.getActiveAnimation();
    Sprite sprite = factory.getActiveSprite();

    if (animation == null || sprite == null) {
      Dialogs.warning(parent,
          Messages.getString("MoveSpriteDownAction.NO_SPRITE")); //$NON-NLS-1$

      return;
    }

    List<Sprite> list = animation.getSprites();
    int index = list.indexOf(sprite);

    if (index != -1 && index < list.size() - 1) {
      List<Sprite> ordered = new ArrayList<Sprite>(list);

      ordered.set(index, ordered.get(index + 1));
      ordered.set(index + 1, sprite);

      animation.setSprites(ordered);
      factory.updateSprites();
    }
  }
View Full Code Here

Examples of squidpony.squidgrid.gui.animation.Animation

     * @param direction
     */
    public void bump(Point location, Point direction) {
        if (contents[location.x][location.y] != null) {
            int duration = 20;
            Animation anim = new BumpAnimation(contents[location.x][location.y], new Point(location.x * cellWidth, location.y * cellHeight), new Dimension(cellWidth / 3, cellHeight / 3), direction, duration);
            contents[location.x][location.y] = null;
            imageChanged[location.x][location.y] = true;
            redraw();
            animations.add(anim);
            if (animationManager == null) {
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.