Java 类org.newdawn.slick.CachedRender 实例源码

项目:trashjam2017    文件:CachedRenderTest.java   
/**
 * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
 */
public void init(final GameContainer container) throws SlickException {
    operations = new Runnable() {
        public void run() {
            for (int i=0;i<100;i++) {
                int c = i+100;
                container.getGraphics().setColor(new Color(c,c,c,c));
                container.getGraphics().drawOval((i*5)+50,(i*3)+50,100,100);
            }
        }
    };

    cached = new CachedRender(operations);
}
项目:Progetto-C    文件:CachedRenderTest.java   
/**
 * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
 */
public void init(final GameContainer container) throws SlickException {
    operations = new Runnable() {
        public void run() {
            for (int i=0;i<100;i++) {
                int c = i+100;
                container.getGraphics().setColor(new Color(c,c,c,c));
                container.getGraphics().drawOval((i*5)+50,(i*3)+50,100,100);
            }
        }
    };

    cached = new CachedRender(operations);
}
项目:BaseClient    文件:CachedRenderTest.java   
/**
 * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
 */
public void init(final GameContainer container) throws SlickException {
    operations = new Runnable() {
        public void run() {
            for (int i=0;i<100;i++) {
                int c = i+100;
                container.getGraphics().setColor(new Color(c,c,c,c));
                container.getGraphics().drawOval((i*5)+50,(i*3)+50,100,100);
            }
        }
    };

    cached = new CachedRender(operations);
}
项目:GPVM    文件:CachedRenderTest.java   
/**
 * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
 */
public void init(final GameContainer container) throws SlickException {
    operations = new Runnable() {
        public void run() {
            for (int i=0;i<100;i++) {
                int c = i+100;
                container.getGraphics().setColor(new Color(c,c,c,c));
                container.getGraphics().drawOval((i*5)+50,(i*3)+50,100,100);
            }
        }
    };

    cached = new CachedRender(operations);
}
项目:SpaceStationAlpha    文件:CachedRenderTest.java   
/**
 * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
 */
public void init(final GameContainer container) throws SlickException {
    operations = new Runnable() {
        public void run() {
            for (int i=0;i<100;i++) {
                int c = i+100;
                container.getGraphics().setColor(new Color(c,c,c,c));
                container.getGraphics().drawOval((i*5)+50,(i*3)+50,100,100);
            }
        }
    };

    cached = new CachedRender(operations);
}
项目:cretion    文件:CachedRenderTest.java   
/**
 * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
 */
public void init(final GameContainer container) throws SlickException {
    operations = new Runnable() {
        public void run() {
            for (int i=0;i<100;i++) {
                int c = i+100;
                container.getGraphics().setColor(new Color(c,c,c,c));
                container.getGraphics().drawOval((i*5)+50,(i*3)+50,100,100);
            }
        }
    };

    cached = new CachedRender(operations);
}
项目:slick2d-maven    文件:CachedRenderTest.java   
/**
 * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
 */
public void init(final GameContainer container) throws SlickException {
    operations = new Runnable() {
        public void run() {
            for (int i=0;i<100;i++) {
                int c = i+100;
                container.getGraphics().setColor(new Color(c,c,c,c));
                container.getGraphics().drawOval((i*5)+50,(i*3)+50,100,100);
            }
        }
    };

    cached = new CachedRender(operations);
}