Package sprite

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


    canvas.repaint();
   
    frame.add(canvas);
    frame.setVisible(true);
   
    Sprite spr = new Sprite("null");
    Intro intro = new Intro(spr, this);
   
    updateList.add(intro);
    drawList.add(spr);
   
View Full Code Here

TOP

Related Classes of sprite.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.