Examples of Sprite


Examples of puppyeyes.engine.Sprite

public class DekuNut extends Actor {
    public int timer = 10;

    public DekuNut() {
        super("Deku Nut");
        addFrame(new Sprite("Resources/Sprites/player/dekunut/nut.png"));

        draw.setVisible(true);
    }
View Full Code Here

Examples of quicktime.std.anim.Sprite

/* 532 */       if ((getClip() != null) &&
/* 533 */         (!getClip().pointIn(this.hitTestPoint))) {
/* 534 */         return null;
/*     */       }
/*     */
/* 537 */       Sprite localSprite = this.mSpriteWorld.hitTest(this.hitTestFlag, this.hitTestPoint);
/* 538 */       if (localSprite == null) return null;
/* 539 */       Enumeration localEnumeration = sprites();
/* 540 */       while (localEnumeration.hasMoreElements()) {
/* 541 */         TwoDSprite localTwoDSprite = (TwoDSprite)localEnumeration.nextElement();
/* 542 */         if (localSprite.equals(localTwoDSprite.getSprite())) {
/* 543 */           return localTwoDSprite;
/*     */         }
/*     */       }
/*     */     }
/* 547 */     return null;
View Full Code Here

Examples of ru.snake.spritepacker.core.Sprite

  }

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

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

Examples of server.sprite.Sprite

  {
   
    //if(game.getMap().isInMap(position)&&game.getMap().isPassable(IUnit.TYPE_LAND, position))
    {
      //TODO playerID anpassen
      Sprite s = new MovableSprite(game, name, ref, Math.screenToWorld(sc_position, game.getViewport()), speed, game.getPlayer(0));
      //Sprite s = new MovableSprite(game, ref, Math.mapToWorld(new Vector2f(10, 10),game.map.getTilesize()), speed);
      synchronized(sprites)
      {
        this.sprites.add(s);
        s.start();
      }
      return true;
    }
    //else
    //{
View Full Code Here

Examples of sprite.Sprite

      options.add(new MenuItem(opt[i]));
      options.get(i).setX(model.width / 2);
      options.get(i).setY((i * 25) + ((model.height / 2) - (opt.length * 25)));
    }
   
    pointer = new Sprite(">>");
   
    char[][] bset = new char[10][50];
   
    for(int y = 0; y < bset.length; y++){
      for(int x = 0; x < bset[y].length; x++){
        if(x == 0 || x == bset[y].length - 1){
          bset[y][x] = '|';
          if(y == 0 || y == bset.length - 1){
            bset[y][x] = '+';
          }
        }else if(y == 0 || y == bset.length - 1){
          bset[y][x] = '-';
        }else{
          bset[y][x] = ' ';
        }
      }
    }
   
    border = new Sprite(bset);
    border.setX(options.get(0).getX() - 50);
    border.setY(options.get(0).getY() - 25);
    border.fill(true);
   
    pointer.setX(options.get(select).getX() - (pointer.getCharSet().length * 25));
    pointer.setY(options.get(select).getY());
   
    bg = new Sprite(model.getMap("menu").getRaw()[2]);
    bg2 = new Sprite(model.getMap("menu").getRaw()[2]);
   
    bg2.setX(-bg.getCharSet().length * 24);
   
    bg.setXVel(0.01);
    bg2.setXVel(0.01);
 
View Full Code Here

Examples of sprites.Sprite

    String[] lines = string.split("\n");
    int height = 0;
    for(int i = 0; i < lines.length ; i++){
      int width = 0;
      for(int j = 0; j < lines[i].length(); j++){
        Sprite glyph = font.getGlyph(lines[i].charAt(j));
        if(glyph != null){
          this.renderSprite(glyph, x + width, y + height);
        }
        width += glyph.getWidth();
      }
      height += font.getGlyphHeight();
    }
  }
View Full Code Here

Examples of tiled.core.Sprite

                    frames[framesx*y+x] = createImage(new FilteredImageSource(img.getSource(), new CropImageFilter(x*map.getTileWidth(), y*map.getTileHeight(), map.getTileWidth(), map.getTileHeight())));
                  }
                }
               
                //TODO add delay input through dialog
                newTile.setSprite(new Sprite(frames, 10)); //chopped up animation
                newTile.setImage(id); //complete animation
                tileset.addNewTile(newTile);
                queryTiles();
                queryImages();
                // Select the last (cloned) tile
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.