コード例 #1
0
 public TransitionMenu(Menu preTrans, Menu postTrans) {
   this.preTrans = preTrans;
   this.postTrans = postTrans;
   try {
     a = new Image(ClientMain.WIDTH, ClientMain.HEIGHT);
     b = new Image(ClientMain.WIDTH, ClientMain.HEIGHT);
     c = new Image(ClientMain.WIDTH, ClientMain.HEIGHT);
     g1 = b.getGraphics();
     postTrans.render(ClientMain.defaultGC, g1);
     a.getGraphics().drawImage(b, 0, 0);
     preTrans.render(ClientMain.defaultGC, g1);
     c.getGraphics().drawImage(b, 0, 0);
   } catch (SlickException e) {
   }
   indeces = new boolean[ClientMain.WIDTH / ClientMain.pixW][ClientMain.HEIGHT / ClientMain.pixW];
   initialize();
 }
コード例 #2
0
 public void init(GameContainer gc) {
   preTrans.render(gc, g1);
 }