Beispiel #1
0
 /** * SourceImage ******************* */
 private static MineImage createOffi(UnitMap map, int x, int y) {
   BufferedImage offi = new BufferedImage(32, 32, BufferedImage.TYPE_INT_ARGB);
   MineGraphics offg = new GraphicsAWT(offi.getGraphics());
   int img = map.getData(Page.P20, x, y);
   int sts = map.getData(Page.P50, x, y);
   map.setData(Page.P20, x, y, 0);
   map.setData(Page.P30, x, y, 0);
   map.setData(Page.P50, x, y, 0);
   offg.drawImage(map.getBuffer(x, y), 0, 0);
   map.setData(Page.P20, x, y, img);
   map.setData(Page.P50, x, y, sts);
   return new ImageAWT(offi);
 }
Beispiel #2
0
 /** * Display ********************************* */
 public void animation(AnimeWorks ac) {
   for (count = 1; count <= 4; count++) {
     ac.repaint();
     ac.sleep(100);
   }
   map.setData(Page.P20, bodyX, bodyY, 0);
   map.setData(Page.P50, bodyX, bodyY, 0);
   ac.setVisible(false);
 }