Package classes

Examples of classes.SyberiadaImage


        this.setBounds(0, 20, screenW, screenH);
       
        final SyberiadaPanel sPanel = new SyberiadaPanel();
        final SyberiadaPanel sPanel2 = new SyberiadaPanel();
       
        final SyberiadaImage intro = new SyberiadaImage("images/intro.png", 0.0f);
        final SyberiadaImage background = new SyberiadaImage("images/background.png", 0.85f);
        final SyberiadaImage tlo = new SyberiadaImage("images/tlo.png", 1f);
        final SyberiadaMenu menu = SyberiadaMenu.getSyberiadaMenu();
        this.addKeyListener(menu);
       
        //intro i deski
        this.setLayout(null);
        sPanel.setBackground(Color.black);
        sPanel.add(intro);
        sPanel.setLayout(null);
        intro.setBounds(0, 0, screenW, screenH);
        intro.scale(screenW, screenH);
        background.setBounds(0, 0, screenW, screenH);
        background.scale(screenW, screenH);
       
        sPanel2.setLayout(null);
        sPanel2.add(menu);
        sPanel2.add(tlo);
        sPanel2.setBackground(Color.black);
       
        //ustawia kartke
        double skala = (double) 1200/screenH;
        int width = (int)((int)1050/skala);
        int x = (screenW-width)/2;
       
        sPanel2.setBounds(x, 0, width, screenH);
        menu.setBounds(0, 50, width, screenH-100);
        tlo.setBounds(0, 0, width, screenH);
        tlo.scale(width, screenH);
       
        intro.appear(1f, 5000, 1500); //5000 1000
        intro.whenAppearDone(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here


        this.setBounds(0, 20, screenW, screenH);
       
        final SyberiadaPanel sPanel = new SyberiadaPanel();
        final SyberiadaPanel sPanel2 = new SyberiadaPanel();
       
        final SyberiadaImage intro = new SyberiadaImage("images/intro.png", 0.0f);
        final SyberiadaImage background = new SyberiadaImage("images/background.png", 0.85f);
        final SyberiadaImage tlo = new SyberiadaImage("images/tlo.png", 1f);
        final SyberiadaMenu menu = SyberiadaMenu.getSyberiadaMenu();
        this.addKeyListener(menu);
       
        //intro i deski
        this.setLayout(null);
        sPanel.setBackground(Color.black);
        sPanel.add(intro);
        sPanel.setLayout(null);
        intro.setBounds(0, 0, screenW, screenH);
        intro.scale(screenW, screenH);
        background.setBounds(0, 0, screenW, screenH);
        background.scale(screenW, screenH);
       
        sPanel2.setLayout(null);
        sPanel2.add(menu);
        sPanel2.add(tlo);
        sPanel2.setBackground(Color.black);
       
        //ustawia kartke
        double skala = (double) 1200/screenH;
        int width = (int)((int)1050/skala);
        int x = (screenW-width)/2;
       
        sPanel2.setBounds(x, 0, width, screenH);
        menu.setBounds(0, 50, width, screenH-100);
        tlo.setBounds(0, 0, width, screenH);
        tlo.scale(width, screenH);
       
        intro.appear(1f, 5000, 1500); //5000 1000
        intro.whenAppearDone(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
View Full Code Here

TOP

Related Classes of classes.SyberiadaImage

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.