Package com.trevor.king.Mines.objects

Examples of com.trevor.king.Mines.objects.Minefield


        icon = kit.createImage(url);

        image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);
        pixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
        screen = new Screen(WIDTH, HEIGHT);
        mines = new Minefield(FIELD_X, FIELD_Y, NUM_MINES, MINE_SIZE, MINE_SIZE, BUFFER, EDGE, screen);

        score = NUM_MINES;

        clock = new Clock();
        mouse = new Mouse();
View Full Code Here


                int percent = ((won * 100) / played);
                String line = message + "\nPlayed: " + played + "  Won: " + won + "  Percent: " + percent + "%" + "\nBest Time: " + bestTime + "\nPlay again?";
                int response = JOptionPane.showConfirmDialog(frame, line, message, JOptionPane.YES_NO_OPTION);
                options.write(NUM_MINES, FIELD_X, FIELD_Y, played, won, bestTime);
                if (response == 0) {
                    mines = new Minefield(FIELD_X, FIELD_Y, NUM_MINES, MINE_SIZE, MINE_SIZE, BUFFER, EDGE, screen);
                    gameOver = false;
                    clock.reset();
                    firstClick = false;
                    score = NUM_MINES;
                }
View Full Code Here

TOP

Related Classes of com.trevor.king.Mines.objects.Minefield

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.